From a44e077f2d7791fd40ab4673cbf065705f81423c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 7 Apr 2021 11:11:22 +0200 Subject: [PATCH] Fallback --- lib/IpcServer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/IpcServer.php b/lib/IpcServer.php index a1dcc1b..105f147 100644 --- a/lib/IpcServer.php +++ b/lib/IpcServer.php @@ -50,7 +50,9 @@ class IpcServer } if (!$useFIFO) { - $this->server = \stream_socket_server($listenUri, $errno, $errstr, \STREAM_SERVER_BIND | \STREAM_SERVER_LISTEN); + try { + $this->server = \stream_socket_server($listenUri, $errno, $errstr, \STREAM_SERVER_BIND | \STREAM_SERVER_LISTEN); + } catch (\Throwable $e) {} } $fifo = false;