fixed race condition in bandwidth manager

This commit is contained in:
Arvid Norberg 2009-04-13 16:31:22 +00:00
parent cf2654ba00
commit c6f4879e06
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ struct bandwidth_manager
void close()
{
mutex_t::scoped_lock l(m_mutex);
m_abort = true;
m_queue.clear();
m_queued_bytes = 0;