summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/zmq_connecter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zmq_connecter.cpp b/src/zmq_connecter.cpp
index 657622a..8d5c59f 100644
--- a/src/zmq_connecter.cpp
+++ b/src/zmq_connecter.cpp
@@ -120,6 +120,8 @@ void zmq::zmq_connecter_t::start_connecting ()
return;
}
- // TODO: Handle the error condition by eventual reconnect.
- zmq_assert (false);
+ // Handle any other error condition by eventual reconnect.
+ tcp_connecter.close ();
+ wait = true;
+ add_timer ();
}