From 85a80452ca28ed82183fabb847ec39a2bd47dac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 31 Oct 2010 10:01:11 +0100 Subject: Remove pending events from a Timer when the timer is stopped. diff --git a/Swiften/Network/BoostTimer.cpp b/Swiften/Network/BoostTimer.cpp index ab6fbe0..1812688 100644 --- a/Swiften/Network/BoostTimer.cpp +++ b/Swiften/Network/BoostTimer.cpp @@ -24,6 +24,7 @@ void BoostTimer::start() { void BoostTimer::stop() { timer.cancel(); + eventLoop->removeEventsFromOwner(shared_from_this()); } void BoostTimer::handleTimerTick(const boost::system::error_code& error) { -- cgit v0.10.2-6-g49f6