From: Christian Weiske Date: Thu, 2 Jul 2015 17:56:23 +0000 (+0200) Subject: sleep before reconnecting X-Git-Tag: v1.0.0~1 X-Git-Url: https://git.cweiske.de/auerswald-callnotifier.git/commitdiff_plain/60bd8065af4019befdd74bfe7805ec4c74c8a8ec?ds=inline sleep before reconnecting --- diff --git a/src/callnotifier/Source/Remote.php b/src/callnotifier/Source/Remote.php index 16c27c0..be7604f 100644 --- a/src/callnotifier/Source/Remote.php +++ b/src/callnotifier/Source/Remote.php @@ -21,6 +21,9 @@ class Source_Remote $this->loop(); } catch (Exception_ConnectionReset $e) { $tryAgain = true; + //connection is refused directly after a connection reset + //hopefully waiting a bit will help + sleep(10); } } while ($tryAgain); $this->disconnect();