Browse Source

Fixed faulty callback call

Taddeus Kroes 13 năm trước cách đây
mục cha
commit
e169d77ab7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      message.py

+ 1 - 1
message.py

@@ -38,6 +38,6 @@ OPCODE_CLASS_MAP = {
 
 def create_message(opcode, payload):
     if opcode in OPCODE_CLASS_MAP:
-        return OPCODE_CLASS_MAP(payload)
+        return OPCODE_CLASS_MAP[opcode](payload)
 
     return Message(opcode, payload)