浏览代码

Fix STOMP protocol mismatch.

Stefano Cossu 6 年之前
父节点
当前提交
75950d037c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lakesuperior/messaging/handlers.py

+ 2 - 2
lakesuperior/messaging/handlers.py

@@ -14,9 +14,9 @@ class StompHandler(logging.Handler):
     def __init__(self, conf):
         self.conf = conf
         if self.conf['protocol'] == '11':
-            conn_cls = stomp.Connection12
-        elif self.conf['protocol'] == '12':
             conn_cls = stomp.Connection11
+        elif self.conf['protocol'] == '12':
+            conn_cls = stomp.Connection12
         else:
             conn_cls = stomp.Connection10