Adding invalid device variable check
This commit is contained in:
parent
548f6b2f16
commit
8755f2e108
|
@ -277,6 +277,9 @@ class Session
|
||||||
//create new coroutines and assign them to free devices
|
//create new coroutines and assign them to free devices
|
||||||
foreach($devices as $device)
|
foreach($devices as $device)
|
||||||
{
|
{
|
||||||
|
if(!$device)
|
||||||
|
continue;
|
||||||
|
|
||||||
if(sizeof($tasks) == 0)
|
if(sizeof($tasks) == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue