From 702e018ca9e780bb076033ce5d1d370d4eb7319e Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 14 Dec 2015 01:52:17 +0100 Subject: properly handle data frames with sequence numbers --- notificationconn.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'notificationconn.cc') diff --git a/notificationconn.cc b/notificationconn.cc index 9d596ea..592f3e5 100644 --- a/notificationconn.cc +++ b/notificationconn.cc @@ -104,7 +104,6 @@ QByteArray NotificationConn::packNotification(const Notification &n) void NotificationConn::sendNotification(const Notification &n) { QByteArray packet = packNotification(n); - packet.prepend('\0'); qDebug() << packet.toHex(); @@ -129,7 +128,6 @@ void NotificationConn::handleConnected() void NotificationConn::handleMessageReceived() { QByteArray data = _socket->receive(); - data.remove(0, 1); // Remove first null byte qDebug() << "Got notif msg" << data.toHex(); -- cgit v1.2.3