Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

exit cleanly on __destruct if i haven't already

  • Loading branch information...
commit a26d8ddc47e6f4db6674a1f231f93e7ec338017f 1 parent 96b0d59
Casey Dentinger authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 NcursesProgressDialog.php
View
7 NcursesProgressDialog.php
@@ -71,4 +71,11 @@ public function update ($place)
if ($place >= $this->limit) ncurses_end();
}
+ public function __destruct ()
+ {
+ if (! ncurses_isendwin()) {
+ ncurses_end();
+ }
+ }
+
}
Please sign in to comment.
Something went wrong with that request. Please try again.