summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 14:58:54 +0100
committerRALOVICH, Kristof <tade60@freemail.hu>2014-01-19 14:58:54 +0100
commit25cae1451289cb5638ede7676def7e4879d19a74 (patch)
treec880664901a16579f8006aac7f392adf95c4efac /src
parent6794c8c59dc5a0f4e3a8e34923bb0df39ef51039 (diff)
Quit quicker.
Make sure we notify all message listeners to wake up.
Diffstat (limited to 'src')
-rw-r--r--src/AntFr310XT.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/AntFr310XT.cpp b/src/AntFr310XT.cpp
index 947b211..cc63030 100644
--- a/src/AntFr310XT.cpp
+++ b/src/AntFr310XT.cpp
@@ -203,11 +203,15 @@ void AntFr310XT::stop()
changeState(ST_ANTFS_START0, true);
}
-void AntFr310XT::stopAsync()
+
+void
+AntFr310XT::stopAsync()
{
+ LOG(LOG_WARN) << "\nstopAsync called!\n\n";
// FIXME: setting ST_ANTFS_LAST might not be enough for stopping immediately,
// as other thread might be
// sleeping in a listener, and we stop only when that returns.
+ if(m_antMessenger) m_antMessenger->interruptWait(); // FIXME locking needed to access m_antMessenger!!!
changeState(ST_ANTFS_LAST);
}