summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-12-15 13:58:21 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-12-15 13:58:21 +0100
commit14b112301e62af5115ab870d97ae448c2e3deddb (patch)
treef025b7221161d2b87cff0fd9dd3796f2df385f5b /src
parente49115224a7957b0e5d49326bc02ae6af186eaf9 (diff)
handle error during connecting by eventual reconnection
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 ();
}