summaryrefslogtreecommitdiff
path: root/liveview/liveview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'liveview/liveview.cpp')
-rw-r--r--liveview/liveview.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/liveview/liveview.cpp b/liveview/liveview.cpp
index 754bf2f..06bd914 100644
--- a/liveview/liveview.cpp
+++ b/liveview/liveview.cpp
@@ -368,9 +368,8 @@ QByteArray LiveView::encodeImage(const QUrl& url)
void LiveView::send(const Message &msg)
{
- Q_ASSERT(_connected);
_sendingMsgs.enqueue(msg);
- if (_waitingForAck == NoMessage) {
+ if (_connected && _waitingForAck == NoMessage) {
sendMessageFromQueue();
} else {
#if PROTOCOL_DEBUG