Skip to content

Commit 09a5e79

Browse files
committed
Remove use of modern asyncio.timeout
1 parent 43e8488 commit 09a5e79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

blinkpy/livestream.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ async def recv(self):
176176
_LOGGER.debug("Starting copy from target to clients")
177177
while not self.target_reader.at_eof():
178178
# Read header from the target server
179-
async with asyncio.timeout(3):
180-
data = await self.target_reader.read(9)
179+
data = await self.target_reader.read(9)
181180

182181
# Check if we have enough data for the header
183182
if len(data) < 9:
@@ -204,8 +203,7 @@ async def recv(self):
204203
continue
205204

206205
# Read payload from the target server
207-
async with asyncio.timeout(3):
208-
data = await self.target_reader.read(payload_length)
206+
data = await self.target_reader.read(payload_length)
209207

210208
# Check if we have enough data for the payload
211209
if len(data) < payload_length:

0 commit comments

Comments
 (0)