Skip to content

Commit 9fddd7a

Browse files
committed
fix(ws): Fix tx history streamer wrong logging when pauseProducing() is called multiple times
1 parent e26a841 commit 9fddd7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hathor/websocket/streamer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def can_transition_to(self, destination: 'StreamerState') -> bool:
4949
VALID_TRANSITIONS = {
5050
StreamerState.NOT_STARTED: {StreamerState.ACTIVE},
5151
StreamerState.ACTIVE: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSING, StreamerState.CLOSED},
52-
StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.CLOSED},
52+
StreamerState.PAUSED: {StreamerState.ACTIVE, StreamerState.PAUSED, StreamerState.CLOSED},
5353
StreamerState.CLOSING: {StreamerState.CLOSED},
5454
StreamerState.CLOSED: set()
5555
}

0 commit comments

Comments
 (0)