summaryrefslogtreecommitdiff
path: root/src/app_thread.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@jozsi.(none)>2009-09-07 11:01:42 +0200
committerMartin Sustrik <sustrik@jozsi.(none)>2009-09-07 11:01:42 +0200
commitd62c74232a4c1edd38004933afd0c7dc119bd98b (patch)
tree72881bf447ea1d29459b2cd32819dfd951a78797 /src/app_thread.cpp
parent11a6cb925f7ff3d17f48edccc886839b4d49ef0b (diff)
parent63b56d7fb38624c32111f9188d54b6fefb10a0e5 (diff)
Merge branch 'master' of git://github.com/sustrik/zeromq2
Diffstat (limited to 'src/app_thread.cpp')
-rw-r--r--src/app_thread.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app_thread.cpp b/src/app_thread.cpp
index e108594..58fe19d 100644
--- a/src/app_thread.cpp
+++ b/src/app_thread.cpp
@@ -51,9 +51,7 @@ zmq::app_thread_t::app_thread_t (dispatcher_t *dispatcher_, int thread_slot_) :
zmq::app_thread_t::~app_thread_t ()
{
- // Destroy all the sockets owned by this application thread.
- for (sockets_t::iterator it = sockets.begin (); it != sockets.end (); it ++)
- delete *it;
+ zmq_assert (sockets.empty ());
}
zmq::i_signaler *zmq::app_thread_t::get_signaler ()