From e3b97ee190a4466ba9bea1ee5004b73d300433b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Wed, 1 Aug 2018 17:14:56 +0200 Subject: [PATCH] Fix message sequencing not being global --- lib/tfw/networking/server/zmq_websocket_proxy.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/tfw/networking/server/zmq_websocket_proxy.py b/lib/tfw/networking/server/zmq_websocket_proxy.py index fc12a6c..15826bd 100644 --- a/lib/tfw/networking/server/zmq_websocket_proxy.py +++ b/lib/tfw/networking/server/zmq_websocket_proxy.py @@ -65,9 +65,10 @@ class ZMQWebSocketProxy(WebSocketHandler): LOG.debug('Received on pull socket: %s', message) self.proxy_eventhandler_to_websocket(message) - def sequence_message(self, message): - self.sequence_number += 1 - message['seq'] = self.sequence_number + @classmethod + def sequence_message(cls, message): + cls.sequence_number += 1 + message['seq'] = cls.sequence_number def on_message(self, message): """