nvm i'm stupid
This commit is contained in:
@@ -253,7 +253,3 @@ def is_port_in_use(port: int) -> bool:
|
|||||||
|
|
||||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||||
return s.connect_ex(("localhost", port)) == 0
|
return s.connect_ex(("localhost", port)) == 0
|
||||||
|
|
||||||
|
|
||||||
def does_game_folder_exist(folder: str) -> bool:
|
|
||||||
return not (os.path.isdir(SERVER_PATH + "/" + folder))
|
|
||||||
|
|||||||
Reference in New Issue
Block a user