Fix deadlock bug where the task_demuxer_service was attempting to acquire
the reactor's lock at the same time as a work object on the reactor was attempting to acquire the task_demuxer_service's lock.
This commit is contained in:
parent
250765fd8c
commit
229718c12f
@ -101,7 +101,6 @@ public:
|
||||
{
|
||||
// Prepare to execute the task.
|
||||
task_is_running_ = true;
|
||||
task_.reset();
|
||||
lock.unlock();
|
||||
|
||||
// Helper class to perform operations on block exit.
|
||||
@ -127,6 +126,7 @@ public:
|
||||
} c(lock, task_is_running_);
|
||||
|
||||
// Run the task. May throw an exception.
|
||||
task_.reset();
|
||||
task_.run();
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user