From 3f8f6f7e19e69fa9bc3178aefd9c73c154e434aa Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 15 Jan 2004 20:00:12 +0000 Subject: [PATCH] *** empty log message *** --- src/session.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/session.cpp b/src/session.cpp index 4fb2e0403..502bb5c3a 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -430,6 +430,15 @@ namespace libtorrent // << "sleeping\n"; m_selector.wait(500000, readable_clients, writable_clients, error_clients); +#ifndef NDEBUG + for (std::vector >::iterator i = + writable_clients.begin(); + i != writable_clients.end(); + ++i) + { + assert((*i)->is_writable()); + } +#endif boost::mutex::scoped_lock l(m_mutex); // +1 for the listen socket