Spaces:
Runtime error
Runtime error
Update pygpt.py
Browse files
pygpt.py
CHANGED
@@ -24,6 +24,7 @@ class PyGPT:
|
|
24 |
|
25 |
async def disconnect(self):
|
26 |
await self.socket.disconnect()
|
|
|
27 |
|
28 |
def on_connect(self):
|
29 |
print('Connected to server')
|
|
|
24 |
|
25 |
async def disconnect(self):
|
26 |
await self.socket.disconnect()
|
27 |
+
await self.socket.close()
|
28 |
|
29 |
def on_connect(self):
|
30 |
print('Connected to server')
|