Selaa lähdekoodia

Fixed faulty callback call

Taddeus Kroes 13 vuotta sitten
vanhempi
sitoutus
e169d77ab7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      message.py

+ 1 - 1
message.py

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