From f1ceb44dc4d13d568db7d803035135c6a17cc0d1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 17 Feb 2008 20:40:21 +0000 Subject: [PATCH] fixed assert. #271 --- src/peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index dcaac5d1b..090239a48 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1447,7 +1447,7 @@ namespace libtorrent fs.async_write(p, data, bind(&peer_connection::on_disk_write_complete , self(), _1, _2, p, t)); m_outstanding_writing_bytes += p.length; - TORRENT_ASSERT(!m_channel_state[download_channel] != peer_info::bw_network); + TORRENT_ASSERT(m_channel_state[download_channel] == peer_info::bw_idle); picker.mark_as_writing(block_finished, peer_info_struct()); #if !defined NDEBUG && !defined TORRENT_DISABLE_INVARIANT_CHECKS t->check_invariant();