From ec8203fff7e3a6c8b9c09b7dca446c3ddc96fddc Mon Sep 17 00:00:00 2001 From: canewsin Date: Wed, 12 Jan 2022 02:33:22 +0530 Subject: [PATCH] Fix ConnServer GetFile exception https://github.com/ZeroNetX/ZeroNet/issues/136 --- src/Connection/Connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py index ad1312f2..8916afbe 100644 --- a/src/Connection/Connection.py +++ b/src/Connection/Connection.py @@ -591,7 +591,7 @@ class Connection(object): buff = 64 * 1024 bytes_left = read_bytes bytes_sent = 0 - while True: + while True and self.sock != None: self.last_send_time = time.time() data = file.read(min(bytes_left, buff)) bytes_sent += len(data)