Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kakserpom/phpdaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
kakserpom committed Nov 19, 2010
2 parents c11fd73 + 2d24da6 commit 069c73a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ThreadCollection.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function getCount() {
/**
* Remove terminated threads from the collection
* @param boolean Whether to check the threads using signal
* @return integer Removed threads count
* @return integer Rest threads count
*/
public function removeTerminated($check = FALSE) {
$n = 0;
Expand All @@ -83,7 +83,8 @@ public function removeTerminated($check = FALSE) {
)
) {
unset($this->threads[$k]);
$n++;
} else {
++$n;
}
}

Expand Down

0 comments on commit 069c73a

Please sign in to comment.