Fix for unblock to make sure it switches to proper thread before running async.

This commit is contained in:
dnotestein 2014-01-06 17:08:36 -05:00
parent f618f3a10f
commit c84b69e094

View file

@ -440,7 +440,7 @@ namespace fc {
void unblock( fc::context* c ) {
if( fc::thread::current().my != this ) {
async( [=](){ unblock(c); } );
self.async( [=](){ unblock(c); } );
return;
}
if( c != current ) ready_push_front(c);