mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
Bugfix: Wrong buffer size after network error
This commit is contained in:
@@ -492,6 +492,8 @@ class NetFH(Thread):
|
||||
min(length, self.__buff_size),
|
||||
)
|
||||
if count == 0:
|
||||
# Add missing bytes with zero to restore original size
|
||||
buffer += bytearray(length)
|
||||
self.__sockerr.set()
|
||||
raise IOError("read error on network")
|
||||
buffer += self.__buff_block[:count]
|
||||
|
||||
Reference in New Issue
Block a user