8 Feb 2011 05:47
session destructor behavior
Alexander Pauls <apauls <at> mediateka.tv>
2011-02-08 04:47:38 GMT
2011-02-08 04:47:38 GMT
Hello,
Starting from revision 4681 behavior of session destructor has been changed:
…
<at> <at> -319,59 +399,55 <at> <at>
// abort the session and let the destructor
// of the proxy to syncronize
if (!m_impl.unique())
- m_impl->abort();
+ {
+ TORRENT_ASYNC_CALL(abort);
+ }
}
…
so session is destructed asynchronously now.
Is there a way to wait for "real" session destruction (all stopped events
are sent, all threads are stop) ?
Or maybe old behavior (synchronous destruction) should be returned to not
break existing code relying on it ?
Thanks,
(Continue reading)
RSS Feed