diff options
author | Javier <dev.git@javispedro.com> | 2015-12-14 01:52:17 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-12-14 01:52:17 +0100 |
commit | 702e018ca9e780bb076033ce5d1d370d4eb7319e (patch) | |
tree | 2012493213c630d7281718aadd1a6fa9a2c92885 /notificationconn.cc | |
parent | ce8a092a235c8d59f01631c80786f920eb6a777b (diff) | |
download | sapd-702e018ca9e780bb076033ce5d1d370d4eb7319e.tar.gz sapd-702e018ca9e780bb076033ce5d1d370d4eb7319e.zip |
properly handle data frames with sequence numbers
Diffstat (limited to 'notificationconn.cc')
-rw-r--r-- | notificationconn.cc | 2 |
1 files changed, 0 insertions, 2 deletions
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(); |