Append message

This commit is contained in:
Luke Murphy 2020-08-05 07:00:49 +02:00
parent 7312a1710e
commit bd038c3ca0
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 3 additions and 0 deletions

View File

@ -128,4 +128,7 @@ class SimpleMessageChannel:
raise RuntimeError("Incoming message too large")
else:
self.state = 0
self.messages.append(
(self.header >> 4, self.header & 0b1111, self.message)
)
self.message = b""