Quick fix (lock/unlock mutex when accessing queue)