mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 726833 - SUT client can hang if prompt occurs on 1024-byte boundary. r=jmaher
This commit is contained in:
parent
6c8466bf46
commit
2eeb857e71
@ -215,12 +215,11 @@ class DeviceManagerSUT(DeviceManager):
|
||||
data = temp
|
||||
break
|
||||
|
||||
lines = temp.split('\n')
|
||||
data += temp
|
||||
|
||||
for line in lines:
|
||||
for line in data.splitlines():
|
||||
if (promptre.match(line)):
|
||||
found = True
|
||||
data += temp
|
||||
|
||||
# If we violently lose the connection to the device, this loop tends to spin,
|
||||
# this guard prevents that
|
||||
|
Loading…
Reference in New Issue
Block a user