fix(p2p): wrong call when peer disconnect
@@ -6,7 +6,6 @@ from math import inf
from typing import TYPE_CHECKING, Callable, Dict, Iterator, List, Optional, Tuple, Union, cast
from twisted.internet.defer import Deferred, inlineCallbacks
-from twisted.internet.error import ConnectionLost
from twisted.internet.interfaces import IDelayedCall, IProtocol, IPushProducer, IReactorCore
from twisted.internet.task import Clock
from twisted.logger import Logger
@@ -142,7 +141,6 @@ class SendDataPush:
self.pauseProducing()
self.queue.clear()
self.priority_queue.clear()
- self.protocol.connectionLost(ConnectionLost('Push data stopped'))
class NodeSyncTimestamp(Plugin):
