aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2015-07-02 19:56:23 +0200
committerChristian Weiske <cweiske@cweiske.de>2015-07-02 19:56:23 +0200
commit60bd8065af4019befdd74bfe7805ec4c74c8a8ec (patch)
treed7c163a12910c6fa4e442d83c696ba4dc1326111
parent11fa9e4f5852b874fe722a84f21ab374b958f1e5 (diff)
downloadauerswald-callnotifier-60bd8065af4019befdd74bfe7805ec4c74c8a8ec.tar.gz
auerswald-callnotifier-60bd8065af4019befdd74bfe7805ec4c74c8a8ec.zip
sleep before reconnecting
-rw-r--r--src/callnotifier/Source/Remote.php3
1 files changed, 3 insertions, 0 deletions
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();