Fixing a bug

This commit is contained in:
Vishal 2025-01-25 20:50:52 +05:30 committed by GitHub
parent a126662472
commit 2e12401de5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View file

@ -102,6 +102,7 @@
} }
], ],
"versions": { "versions": {
"2.0.2": null,
"2.0.1": { "2.0.1": {
"api_version": 9, "api_version": 9,
"commit_sha": "506451f", "commit_sha": "506451f",

View file

@ -10,13 +10,13 @@ k = bs.connect_to_party
def j(address, port=43210, print_progress=False): def j(address, port=43210, print_progress=False):
try: try:
if bs.get_connection_to_host_info() is not None: if bool(bs.get_connection_to_host_info_2()):
bs.disconnect_from_host() bs.disconnect_from_host()
m.i = address
m.p = port
k(m.i, m.p, print_progress)
except: except:
pass pass
m.i = address
m.p = port
k(m.i, m.p, print_progress)
def R(s): def R(s):
@ -32,4 +32,4 @@ def R(s):
class byBordd(v): class byBordd(v):
def __init__(s): def __init__(s):
m._refresh_in_game = R(m._refresh_in_game) m._refresh_in_game = R(m._refresh_in_game)
bs.connect_to_party = j bs.connect_to_party = j