diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-15 23:39:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-15 23:39:42 -0300 |
commit | 2bca2c199e276e5e679613c6314b531605aa7254 (patch) | |
tree | 63f6c6a17dd39d2a66aa72344fdfca66163fb719 /game | |
parent | 227654c7d0594b73afe68736e50403cf939ed32f (diff) | |
download | client-2bca2c199e276e5e679613c6314b531605aa7254.tar.gz client-2bca2c199e276e5e679613c6314b531605aa7254.tar.bz2 client-2bca2c199e276e5e679613c6314b531605aa7254.tar.xz client-2bca2c199e276e5e679613c6314b531605aa7254.zip |
Modify websocket core because SSLSocket does not exist in Android.
So it must return False in a try:except loop
Diffstat (limited to 'game')
-rw-r--r-- | game/python-extra/websock/_core.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/game/python-extra/websock/_core.py b/game/python-extra/websock/_core.py index 418aafc..6442188 100644 --- a/game/python-extra/websock/_core.py +++ b/game/python-extra/websock/_core.py @@ -179,7 +179,13 @@ class WebSocket(object): return None def is_ssl(self): - return isinstance(self.sock, ssl.SSLSocket) + ########################## + # THIS HAS BEEN MODIFIED # + ########################## + try: + return isinstance(self.sock, ssl.SSLSocket) + except: + return False headers = property(getheaders) |