Commit e169d77a authored by Taddeüs Kroes's avatar Taddeüs Kroes

Fixed faulty callback call

parent 3cc30d5a
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment