Fix connection reply bug
Now, packet ids are always strings, except for self._pid.
This commit is contained in:
parent
676f9d395b
commit
34e1ae4b8f
1 changed files with 2 additions and 2 deletions
|
|
@ -49,10 +49,10 @@ class Connection:
|
||||||
if self.stopped:
|
if self.stopped:
|
||||||
raise ConnectionClosed
|
raise ConnectionClosed
|
||||||
|
|
||||||
pid = self._new_pid()
|
pid = str(self._new_pid())
|
||||||
packet = {
|
packet = {
|
||||||
"type": ptype,
|
"type": ptype,
|
||||||
"id": str(pid)
|
"id": pid
|
||||||
}
|
}
|
||||||
if data:
|
if data:
|
||||||
packet["data"] = data
|
packet["data"] = data
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue