Explorar el Código

Fixed faulty callback call

Taddeus Kroes hace 13 años
padre
commit
e169d77ab7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)