server: fix some bugs lol
This commit is contained in:
parent
9daa1e6d1b
commit
d3a44d5f0a
1 changed files with 5 additions and 3 deletions
|
@ -109,9 +109,11 @@ class Session(object):
|
|||
print(self.connection_id, "going away")
|
||||
if self.sender is not None:
|
||||
self.sender.end()
|
||||
if self.pc is not None:
|
||||
await self.pc.close()
|
||||
init_buffers()
|
||||
write_ob_status(False)
|
||||
if self.websocket is not None:
|
||||
await self.websocket.send(json.dumps({"kind": "REPLACED"}))
|
||||
|
||||
def create_peerconnection(self):
|
||||
|
@ -166,7 +168,7 @@ class Session(object):
|
|||
answer = await self.pc.createAnswer()
|
||||
await self.pc.setLocalDescription(answer)
|
||||
|
||||
await websocket.send(
|
||||
await self.websocket.send(
|
||||
json.dumps(
|
||||
{
|
||||
"kind": "ANSWER",
|
||||
|
|
Loading…
Reference in a new issue