diff options
author | Micah Lee <micah@micahflee.com> | 2021-12-21 16:55:59 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-12-21 16:55:59 -0800 |
commit | ec7fa4ef16c9e1ba6028ee927c23f76c399a17a6 (patch) | |
tree | 1c4e471c2829b4dc8fb0e75cd6bcad9c4ad6c5b9 /cli/onionshare_cli/web/web.py | |
parent | 3da0b7a3eafc78d27a357ffdcc2c1bdab79e87ec (diff) | |
download | onionshare-ec7fa4ef16c9e1ba6028ee927c23f76c399a17a6.tar.gz onionshare-ec7fa4ef16c9e1ba6028ee927c23f76c399a17a6.zip |
Solve obnoxious cx_Freeze issue that broke websockets by enforcing async_mode=gevent, and including the correct modules in the build
Diffstat (limited to 'cli/onionshare_cli/web/web.py')
-rw-r--r-- | cli/onionshare_cli/web/web.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/onionshare_cli/web/web.py b/cli/onionshare_cli/web/web.py index fc5f86fe..0fc55eb4 100644 --- a/cli/onionshare_cli/web/web.py +++ b/cli/onionshare_cli/web/web.py @@ -163,9 +163,11 @@ class Web: self.website_mode = WebsiteModeWeb(self.common, self) elif self.mode == "chat": if self.common.verbose: - self.socketio = SocketIO(logger=True, engineio_logger=True) + self.socketio = SocketIO( + async_mode="gevent", logger=True, engineio_logger=True + ) else: - self.socketio = SocketIO() + self.socketio = SocketIO(async_mode="gevent") self.socketio.init_app(self.app) self.chat_mode = ChatModeWeb(self.common, self) |