Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call ipc function more than once breaks #5

Open
davidpicon7 opened this issue May 13, 2021 · 2 comments
Open

Call ipc function more than once breaks #5

davidpicon7 opened this issue May 13, 2021 · 2 comments

Comments

@davidpicon7
Copy link

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

@Daftscientist
Copy link

this is bc swas is an idiot

@davidpicon7
Copy link
Author

davidpicon7 commented May 16, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants