allow clearing the notify function in alert manager

This commit is contained in:
arvidn 2015-07-30 21:34:55 -04:00
parent 52b4aed466
commit f86283ac30
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ namespace libtorrent
{
// never call a callback with the lock held!
lock.unlock();
m_notify();
if (m_notify) m_notify();
}
}