Преглед на файлове

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