From db8475053c08c1b7f20349cf294831b99e916f67 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 26 Jun 2024 12:18:06 +1000 Subject: [PATCH] Attempt to catch Sending we got an EXCEPTION when in maintenance mode --- app/Classes/Protocol/Binkp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/Protocol/Binkp.php b/app/Classes/Protocol/Binkp.php index 1ae3a76..529902a 100644 --- a/app/Classes/Protocol/Binkp.php +++ b/app/Classes/Protocol/Binkp.php @@ -177,8 +177,8 @@ final class Binkp extends BaseProtocol $this->msgs(self::BPM_BSY,'RETRY 0600: Down for maintenance, back soon...'); - while ($this->tx_left || $this->mqueue->count()) - $this->binkp_send(); + // @note Sometimes the remote drops the connection when we send the busy + while (($this->tx_left || $this->mqueue->count()) && $this->binkp_send()) {} return FALSE; }