From 20916b44f0a88d7df2366b0d36d81f7ab249af1d Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Mon, 17 Mar 2025 14:50:56 +0700 Subject: [PATCH] throw error if failed disconnect customer --- system/cron.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/system/cron.php b/system/cron.php index 06092eb6..c669a5bf 100644 --- a/system/cron.php +++ b/system/cron.php @@ -75,13 +75,7 @@ foreach ($d as $ds) { if ($_app_stage != 'demo') { if (file_exists($dvc)) { require_once $dvc; - try { - (new $p['device'])->remove_customer($c, $p); - } catch (Throwable $e) { - _log($e->getMessage()); - sendTelegram($e->getMessage()); - echo "Error: " . $e->getMessage() . "\n"; - } + (new $p['device'])->remove_customer($c, $p); } else { throw new Exception("Cron error: Devices " . $p['device'] . "not found, cannot disconnect ".$c['username']."\n"); }