Mercurial > hg > sonic-visualiser
comparison main/OSCHandler.cpp @ 2529:c7554741550f
Discard rest of OSC queue when exiting from OSC
author | Chris Cannam |
---|---|
date | Wed, 29 Apr 2020 17:48:49 +0100 |
parents | 1891812e44b2 |
children |
comparison
equal
deleted
inserted
replaced
2528:84ddd274fcc0 | 2529:c7554741550f |
---|---|
770 } | 770 } |
771 | 771 |
772 } else if (message.getMethod() == "quit") { | 772 } else if (message.getMethod() == "quit") { |
773 | 773 |
774 SVDEBUG << "OSCHandler: Exiting abruptly" << endl; | 774 SVDEBUG << "OSCHandler: Exiting abruptly" << endl; |
775 | |
776 // discard any more pending OSC messages | |
777 if (m_oscQueue) { | |
778 while (!m_oscQueue->isEmpty()) { | |
779 (void)m_oscQueue->readMessage(); | |
780 } | |
781 } | |
782 | |
775 m_documentModified = false; // so we don't ask to save | 783 m_documentModified = false; // so we don't ask to save |
776 close(); | 784 close(); |
777 | 785 |
778 } else if (message.getMethod() == "resize") { | 786 } else if (message.getMethod() == "resize") { |
779 | 787 |