From: Bram Matthys Date: Sat, 14 Jan 2023 16:18:19 +0000 (+0100) Subject: Start the JSON-RPC connection immediately, so connection errors also happen X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-rpc-php.git/commitdiff_plain/57c1d592f076a9e06be89345cfe84d9e54a8664a?ds=sidebyside Start the JSON-RPC connection immediately, so connection errors also happen immediately during the call new UnrealIRCd\Connection(.....) --- diff --git a/lib/Connection.php b/lib/Connection.php index ad8130b..37272b6 100644 --- a/lib/Connection.php +++ b/lib/Connection.php @@ -29,6 +29,8 @@ class Connection 'timeout' => 10, ]); + /* Start the connection now */ + $this->connection->ping(); } /**