diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/AntChannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AntChannel.cpp b/src/AntChannel.cpp index 072be08..d275b8c 100644 --- a/src/AntChannel.cpp +++ b/src/AntChannel.cpp @@ -82,9 +82,9 @@ bool AntListenerBase::waitForMsg(AntMessage* m, const size_t timeout_ms) { boost::unique_lock<boost::mutex> lock(m_mtxResp); - if(m_msgResp) + if(m_msgResp) // it had already arrived { - if(m) *m = *m_msgResp; // it had already arrived + if(m) *m = *m_msgResp; m_msgResp.reset(); return true; } |