check NULL package after one process
This commit is contained in:
@@ -78,6 +78,8 @@ class Netrecv:
|
|||||||
return
|
return
|
||||||
data += new_data
|
data += new_data
|
||||||
while True: # process sticky package
|
while True: # process sticky package
|
||||||
|
if not data:
|
||||||
|
break
|
||||||
dp = Datapack(check_head=False)
|
dp = Datapack(check_head=False)
|
||||||
dp.encode_data = data
|
dp.encode_data = data
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user