Make SocketReader return its buffer when told to exit
This commit is contained in:
parent
c14310a010
commit
568b650acd
3
neomi.py
3
neomi.py
|
@ -105,7 +105,8 @@ def SocketReader(sock):
|
||||||
|
|
||||||
if command is not None:
|
if command is not None:
|
||||||
if command == SocketReaderCommands.stop:
|
if command == SocketReaderCommands.stop:
|
||||||
return
|
# Return the rest of data in buffer
|
||||||
|
return chunk
|
||||||
else:
|
else:
|
||||||
raise CommandError('%s not recognised' % repr(command))
|
raise CommandError('%s not recognised' % repr(command))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue