minor changes
This commit is contained in:
parent
ac2a584b8d
commit
17ab29ce00
2 changed files with 6 additions and 6 deletions
|
|
@ -92,7 +92,7 @@ class Thread
|
|||
*/
|
||||
public function __construct( $runnable = null )
|
||||
{
|
||||
if(!Thread::isAvailable)throw new Exception("Threads not supported");
|
||||
if(!Thread::isAvailable() )throw new Exception("Threads not supported");
|
||||
if ( $runnable !== null ) {
|
||||
$this->setRunnable($runnable);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue