Skip to content

Commit

Permalink
Merge pull request #7426: infernalis: rbd: TaskFinisher::cancel shoul…
Browse files Browse the repository at this point in the history
…d remove event from SafeTimer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Feb 8, 2016
2 parents 15034bb + f870ba9 commit 685b281
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librbd/TaskFinisher.h
Expand Up @@ -45,6 +45,7 @@ class TaskFinisher {
typename TaskContexts::iterator it = m_task_contexts.find(task);
if (it != m_task_contexts.end()) {
delete it->second.first;
m_safe_timer->cancel_event(it->second.second);
m_task_contexts.erase(it);
}
}
Expand Down

0 comments on commit 685b281

Please sign in to comment.