stability improvments
This commit is contained in:
parent
8a23eac8fa
commit
57202969c8
@ -823,6 +823,11 @@ class BOIIIWD(ctk.CTk):
|
|||||||
if f"download item {target_item_id.strip()}" in line:
|
if f"download item {target_item_id.strip()}" in line:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
except:
|
||||||
|
try:
|
||||||
|
os.remove(temp_file_path)
|
||||||
|
except:
|
||||||
return False
|
return False
|
||||||
finally:
|
finally:
|
||||||
os.remove(temp_file_path)
|
os.remove(temp_file_path)
|
||||||
@ -896,13 +901,13 @@ class BOIIIWD(ctk.CTk):
|
|||||||
|
|
||||||
#wait for process
|
#wait for process
|
||||||
while True:
|
while True:
|
||||||
|
if process.poll() is not None:
|
||||||
|
break
|
||||||
if not self.is_downloading:
|
if not self.is_downloading:
|
||||||
if self.check_steamcmd_stdout(stdout_path, wsid):
|
if self.check_steamcmd_stdout(stdout_path, wsid):
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
self.is_downloading = True
|
self.is_downloading = True
|
||||||
elapsed_time = time.time() - start_time
|
elapsed_time = time.time() - start_time
|
||||||
if process.poll() is not None:
|
|
||||||
break
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
# print("Broken freeeee!")
|
# print("Broken freeeee!")
|
||||||
@ -911,7 +916,10 @@ class BOIIIWD(ctk.CTk):
|
|||||||
with open(stdout_path, 'w') as file:
|
with open(stdout_path, 'w') as file:
|
||||||
file.write('')
|
file.write('')
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
os.rename(stdout_path, os.path.join(map_folder, os.path.join(stdout_path, f"workshop_log_couldntremove_{timestamp}.txt")))
|
os.rename(stdout_path, os.path.join(map_folder, os.path.join(stdout_path, f"workshop_log_couldntremove_{timestamp}.txt")))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
if not self.settings_tab.stopped:
|
if not self.settings_tab.stopped:
|
||||||
self.settings_tab.steam_fail_counter = self.settings_tab.steam_fail_counter + 1
|
self.settings_tab.steam_fail_counter = self.settings_tab.steam_fail_counter + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user