Răsfoiți Sursa

Fixed faulty callback call

Taddeus Kroes 13 ani în urmă
părinte
comite
e169d77ab7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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)