feat: monitor server connection

This commit is contained in:
Andras Bacsai
2023-08-16 17:18:50 +02:00
parent fd74e07fc8
commit b34ab8a128
11 changed files with 184 additions and 66 deletions

View File

@@ -43,7 +43,7 @@ class Change extends Component
$this->private_key->private_key .= "\n";
}
$this->private_key->save();
refreshPrivateKey($this->private_key);
refresh_server_connection($this->private_key);
} catch (\Exception $e) {
return general_error_handler(err: $e, that: $this);
}

View File

@@ -17,7 +17,7 @@ class PrivateKey extends Component
$this->server->update([
'private_key_id' => $private_key_id
]);
refreshPrivateKey($this->server->privateKey);
refresh_server_connection($this->server->privateKey);
$this->server->refresh();
$this->checkConnection();
}