File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def next_frame_size(socket):
59
59
try :
60
60
data = read_exactly (socket , 8 )
61
61
except SocketError :
62
- return 0
62
+ return - 1
63
63
64
64
_ , actual = struct .unpack ('>BxxxL' , data )
65
65
return actual
@@ -71,7 +71,7 @@ def frames_iter(socket):
71
71
"""
72
72
while True :
73
73
n = next_frame_size (socket )
74
- if n == 0 :
74
+ if n < 0 :
75
75
break
76
76
while n > 0 :
77
77
result = read (socket , n )
Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ def get_fake_wait():
205
205
206
206
def get_fake_logs ():
207
207
status_code = 200
208
- response = (b'\x01 \x00 \x00 \x00 \x00 \x00 \x00 \x11 Flowering Nights\n '
208
+ response = (b'\x01 \x00 \x00 \x00 \x00 \x00 \x00 \x00 '
209
+ b'\x02 \x00 \x00 \x00 \x00 \x00 \x00 \x00 '
210
+ b'\x01 \x00 \x00 \x00 \x00 \x00 \x00 \x11 Flowering Nights\n '
209
211
b'\x01 \x00 \x00 \x00 \x00 \x00 \x00 \x10 (Sakuya Iyazoi)\n ' )
210
212
return status_code , response
211
213
You can’t perform that action at this time.
0 commit comments