From 9fddd7abc1a9661d5d7ff8c28b04ec8b3037a854 Mon Sep 17 00:00:00 2001 From: Marcelo Salhab Brogliato Date: Tue, 10 Sep 2024 11:47:30 -0500 Subject: [PATCH] fix(ws): Fix tx history streamer wrong logging when pauseProducing() is called multiple times --- hathor/websocket/streamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hathor/websocket/streamer.py b/hathor/websocket/streamer.py index 08eb6ca89..5c881a8f8 100644 --- a/hathor/websocket/streamer.py +++ b/hathor/websocket/streamer.py @@ -49,7 +49,7 @@ def can_transition_to(self, destination: 'StreamerState') -> bool: VALID_TRANSITIONS = { StreamerState.NOT_STARTED: {StreamerState.ACTIVE}, StreamerState.ACTIVE: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSING, StreamerState.CLOSED}, - StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.CLOSED}, + StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSED}, StreamerState.CLOSING: {StreamerState.CLOSED}, StreamerState.CLOSED: set() }