From 60bd8065af4019befdd74bfe7805ec4c74c8a8ec Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 2 Jul 2015 19:56:23 +0200 Subject: [PATCH] sleep before reconnecting --- src/callnotifier/Source/Remote.php | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.30.2