]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/commitdiff
Start the JSON-RPC connection immediately, so connection errors also happen
authorBram Matthys <redacted>
Sat, 14 Jan 2023 16:18:19 +0000 (17:18 +0100)
committerBram Matthys <redacted>
Sat, 14 Jan 2023 16:19:46 +0000 (17:19 +0100)
immediately during the call new UnrealIRCd\Connection(.....)

lib/Connection.php

index ad8130bfd7ac23861bf80abe9f34e642829e4dbd..37272b615d1db8ef178e72ddcd151b8d54653847 100644 (file)
@@ -29,6 +29,8 @@ class Connection
             'timeout' => 10,
         ]);
 
+        /* Start the connection now */
+        $this->connection->ping();
     }
 
     /**