1
0
Fork 0

fix: add missing mutex

This commit is contained in:
Jan Christoph Uhde 2016-07-06 17:01:43 +02:00
parent 7996b2c152
commit d5a64253ec
1 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ Mutex V8PeriodicTask::RUNNING_LOCK;
void V8PeriodicTask::jobDone(Task* task) {
try {
MUTEX_LOCKER(guard, V8PeriodicTask::RUNNING_LOCK);
RUNNING.erase(task);
} catch (...) {
// ignore any memory error