Small fix

This commit is contained in:
Daniil Gentili 2017-05-28 00:50:22 +01:00
parent 8cf425bd82
commit 3aef7653a4

View File

@ -32,6 +32,7 @@ if (!extension_loaded('pthreads')) {
public function start()
{
if (!isset($this->state)) $this->state = 0;
if ($this->state & self::STARTED) {
throw new \RuntimeException();
}