Skip to content

Commit 7fc7806

Browse files
committed
Update 120s to 60s
1 parent cbd218f commit 7fc7806

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

nxc/modules/schtask_as.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,7 @@ def on_admin_login(self, context, connection):
228228
makedirs(dump_path)
229229

230230
# Polling loop to wait for the PFX to be ready (avoid fixed sleep)
231-
max_wait_seconds = getattr(connection.args, "get_output_tries", None)
232-
try:
233-
# connection.args.get_output_tries may be an int or str; normalize
234-
max_wait_seconds = 120 if max_wait_seconds is None else int(max_wait_seconds)
235-
except Exception:
236-
max_wait_seconds = 120
231+
max_wait_seconds = getattr(connection.args, "get_output_tries", 60)
237232

238233
pfx_local_path = path.join(dump_path, f"{self.run_task_as}.pfx")
239234
pfx_remote_path = f"{self.output_file_location}\\{self.output_filename}.pfx"

0 commit comments

Comments
 (0)