Dashboard-Tutorials icon indicating copy to clipboard operation
Dashboard-Tutorials copied to clipboard

Call ipc function more than once breaks

Open davidpicon7 opened this issue 4 years ago • 2 comments

If you try to call some ipc function more than once, second time returns an Error and after that conections closes.

davidpicon7 avatar May 13 '21 18:05 davidpicon7

this is bc swas is an idiot

Daftscientist avatar May 16 '21 15:05 Daftscientist

I made a workarround to work in django, modifying the client.py (from ext-ipc library) (line 95):

#        if not self.session:
        await self.init_sock()

and last 2 lines:

        await self.websocket.close()
        return json.loads(recv.data)

davidpicon7 avatar May 16 '21 18:05 davidpicon7