From 435bc9af71d062b27c0c32e4b5d9d9f9dcd2f4d3 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 6 Sep 2008 21:09:01 +0000 Subject: [PATCH] removed invalid assert --- src/alert.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/alert.cpp b/src/alert.cpp index 844cfb93b..3e65d2b08 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -74,8 +74,9 @@ namespace libtorrent { xt.sec += 1; } xt.nsec = boost::xtime::xtime_nsec_t(nsec); + // apparently this call can be interrupted + // prematurely if there are other signals if (!m_condition.timed_wait(lock, xt)) return 0; - TORRENT_ASSERT(!m_alerts.empty()); if (m_alerts.empty()) return 0; return m_alerts.front(); }