Dont accept connections when application down
This commit is contained in:
@@ -124,6 +124,8 @@ abstract class Protocol
|
||||
protected bool $originate;
|
||||
/** Our comms details */
|
||||
|
||||
protected bool $down = FALSE;
|
||||
|
||||
private array $comms;
|
||||
|
||||
protected bool $force_queue = FALSE;
|
||||
@@ -366,6 +368,9 @@ abstract class Protocol
|
||||
// We are an IP node
|
||||
$this->optionSet(self::O_TCP);
|
||||
$this->client = $client;
|
||||
// @todo This appears to be a bug in laravel? Need to call app()->isDownForMaintenance() twice?
|
||||
app()->isDownForMaintenance();
|
||||
$this->down = app()->isDownForMaintenance();
|
||||
|
||||
switch ($mo->name) {
|
||||
case 'EMSI':
|
||||
|
Reference in New Issue
Block a user