summaryrefslogtreecommitdiffstats
path: root/scripts/remote/ratp.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/remote/ratp.py')
-rw-r--r--scripts/remote/ratp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/remote/ratp.py b/scripts/remote/ratp.py
index 079fb871a3..a41d2e8a3f 100644
--- a/scripts/remote/ratp.py
+++ b/scripts/remote/ratp.py
@@ -525,7 +525,7 @@ class RatpConnection(object):
# Our fin was lost, rely on retransmission
return False
- if r.length or r.c_so:
+ if (r.length and not r.c_syn and not r.c_rst and not r.c_fin) or r.c_so:
self._retrans = None
s = RatpPacket(flags='RA')
s.c_sn = r.c_an
@@ -596,7 +596,7 @@ class RatpConnection(object):
if r.c_so:
self._r_sn = r.c_sn
self._rx_buf.append(chr(r.length))
- elif r.length:
+ elif r.length and not r.c_syn and not r.c_rst and not r.c_fin:
self._r_sn = r.c_sn
self._rx_buf.append(r.payload)
else: