Fix for unblock to make sure it switches to proper thread before running async.
This commit is contained in:
parent
f618f3a10f
commit
c84b69e094
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ namespace fc {
|
||||||
|
|
||||||
void unblock( fc::context* c ) {
|
void unblock( fc::context* c ) {
|
||||||
if( fc::thread::current().my != this ) {
|
if( fc::thread::current().my != this ) {
|
||||||
async( [=](){ unblock(c); } );
|
self.async( [=](){ unblock(c); } );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if( c != current ) ready_push_front(c);
|
if( c != current ) ready_push_front(c);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue