From b066780930a32256a19a3af835492d43b424e941 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Sat, 18 Mar 2017 02:04:40 +0100
Subject: [PATCH] -todo

---
 coolamqp/uplink/connection/connection.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/coolamqp/uplink/connection/connection.py b/coolamqp/uplink/connection/connection.py
index ddc24ac..8c8e926 100644
--- a/coolamqp/uplink/connection/connection.py
+++ b/coolamqp/uplink/connection/connection.py
@@ -277,9 +277,11 @@ class Connection(object):
         Shall the connection die in the meantime, watchdog will not
         be called, and everything will process according to
         ListenerThread's on_fail callback.
+
+        This is necessary to implement timeout detection when setting up the connection
+        and heartbeat is not yet configured.
         """
         try:
-            # todo why is that necessary? it doesnt pass travis CI if there's no this block
             self.listener_socket.oneshot(delay, callback)
         except AttributeError:
             pass  # print(dir(self))
-- 
GitLab