adb: fix timeout issue

This commit is contained in:
Hay1tsme 2024-01-09 03:16:31 -05:00
parent 14fa0f5e8e
commit cc68b7f6c6

View File

@ -74,7 +74,7 @@ class AimedbServlette():
self.logger.debug(f"Connection made from {writer.get_extra_info('peername')[0]}")
while True:
try:
data: bytes = await reader.read()
data: bytes = await reader.read(4096)
if len(data) == 0:
self.logger.debug("Connection closed")
return