Adding invalid device variable check

This commit is contained in:
Pavel Shevaev 2023-11-07 16:26:53 +03:00
parent 548f6b2f16
commit 8755f2e108
1 changed files with 3 additions and 0 deletions

View File

@ -277,6 +277,9 @@ class Session
//create new coroutines and assign them to free devices
foreach($devices as $device)
{
if(!$device)
continue;
if(sizeof($tasks) == 0)
break;