From c84b69e09404676ed6f4e25332be1c44383a238a Mon Sep 17 00:00:00 2001 From: dnotestein Date: Mon, 6 Jan 2014 17:08:36 -0500 Subject: [PATCH] Fix for unblock to make sure it switches to proper thread before running async. --- src/thread/thread_d.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/thread_d.hpp b/src/thread/thread_d.hpp index bac4aa0..9a93867 100644 --- a/src/thread/thread_d.hpp +++ b/src/thread/thread_d.hpp @@ -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);