From aff7912f4191f3ccd6d5ab158326d1efc09394e5 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 7 Nov 2021 15:16:07 +0100 Subject: [PATCH] avoid sending packet slicing probes to the serializer in pqistreamer --- libretroshare/src/pqi/pqistreamer.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libretroshare/src/pqi/pqistreamer.cc b/libretroshare/src/pqi/pqistreamer.cc index d3e02c632..7f5a42301 100644 --- a/libretroshare/src/pqi/pqistreamer.cc +++ b/libretroshare/src/pqi/pqistreamer.cc @@ -803,11 +803,14 @@ start_packet_read: if(!memcmp(block,PACKET_SLICING_PROBE_BYTES,8)) { - mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING; + mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING; #ifdef DEBUG_PACKET_SLICING std::cerr << "(II) Enabling packet slicing!" << std::endl; #endif - } + mReading_state = reading_state_initial ; // restart at state 1. + mFailed_read_attempts = 0 ; + return 0; + } } continue_packet: {