From dc62508a7b0a7906ff673f5406a0ec20776e3983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 4 Jul 2019 15:55:23 +0200 Subject: [PATCH] Remove message scope during routing --- lib/tfw/server/zmq_websocket_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tfw/server/zmq_websocket_router.py b/lib/tfw/server/zmq_websocket_router.py index f682f02..cb19c33 100644 --- a/lib/tfw/server/zmq_websocket_router.py +++ b/lib/tfw/server/zmq_websocket_router.py @@ -54,7 +54,7 @@ class TFWRouter: self.send_to_websockets = send_to_websockets def route(self, message): - scope = Scope(message.get('scope', 'zmq')) + scope = Scope(message.pop('scope', 'zmq')) routing_table = { Scope.ZMQ: self.send_to_zmq,