Update PhyreServer.php
This commit is contained in:
parent
c1b059963c
commit
ecf62a45e9
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ class PhyreServer extends Model
|
|||
if (isset($response['status']) && $response['status'] == 'ok') {
|
||||
$this->status = 'Online';
|
||||
$this->save();
|
||||
} else {
|
||||
$this->status = 'Offline';
|
||||
$this->save();
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
$this->status = 'Offline';
|
||||
|
|
Loading…
Reference in a new issue