From 8755f2e1081efad36bbcefefbdd75082b1a267cd Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 7 Nov 2023 16:26:53 +0300 Subject: [PATCH] Adding invalid device variable check --- session.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/session.inc.php b/session.inc.php index f110347..0cb663a 100644 --- a/session.inc.php +++ b/session.inc.php @@ -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;