diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-17 02:50:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-17 02:50:12 -0300 |
commit | e1793335a756f491593a3f36e3d6b6eee2c7a005 (patch) | |
tree | 5a39ccb2a59dc3db6d582a2763ee72649f4b2c8d /game/script.rpy | |
parent | c707470f1e3b5ddfe82ef09d9b79905d09684ebe (diff) | |
download | client-e1793335a756f491593a3f36e3d6b6eee2c7a005.tar.gz client-e1793335a756f491593a3f36e3d6b6eee2c7a005.tar.bz2 client-e1793335a756f491593a3f36e3d6b6eee2c7a005.tar.xz client-e1793335a756f491593a3f36e3d6b6eee2c7a005.zip |
Replace websocket-client with ws4py
Both are dead but well, Python 2.7 is dead, soooo
Diffstat (limited to 'game/script.rpy')
-rw-r--r-- | game/script.rpy | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/game/script.rpy b/game/script.rpy index dd3ee56..fede461 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -39,20 +39,7 @@ label start: # on_open=None, on_message=None, on_error=None, # on_close=None, on_ping=None, on_pong=None, # on_data=None): - if (persistent.ssl_enabled): - stdout(_("Opening new secure socket...")) - ws = wsock.WebSocketApp("wss://"+HOST+":61000", - on_data=ondata, on_error=onerror, on_open=onopen, - on_message=onmsg) - ws.on_open = onopen - renpy.invoke_in_thread(ws.run_forever, sslopt={"cert_reqs": CERT_NONE}) - else: - stdout(_("Opening new socket...")) - ws = wsock.WebSocketApp("ws://"+HOST+":61000", - on_data=ondata, on_error=onerror, on_open=onopen, - on_message=onmsg) - ws.on_open = onopen - renpy.invoke_in_thread(ws.run_forever) + renpy.invoke_in_thread(supervisor, persistent.ssl_enabled) except: # Enter in infinite loop, this will never resolve stdout("Unrecoverable error, the program is dead.") |