From 1ad86bcb5be87f7a33c9bd12ddc545a9ad418c02 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Sun, 28 Feb 2021 19:19:04 +0200 Subject: [PATCH] Init uploadChunk and downloadChunk in AdvancedDispatcher --- src/network/advanceddispatcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/advanceddispatcher.py b/src/network/advanceddispatcher.py index b12ca1e4..49f0d19d 100644 --- a/src/network/advanceddispatcher.py +++ b/src/network/advanceddispatcher.py @@ -1,7 +1,6 @@ """ Improved version of asyncore dispatcher """ -# pylint: disable=attribute-defined-outside-init import socket import threading import time @@ -43,6 +42,7 @@ class AdvancedDispatcher(asyncore.dispatcher): self.readLock = threading.RLock() self.writeLock = threading.RLock() self.processingLock = threading.RLock() + self.uploadChunk = self.downloadChunk = 0 def append_write_buf(self, data): """Append binary data to the end of stream write buffer."""