local_free (c_threads);
- if ((data.devices_status != STATUS_CRACKED) && (data.devices_status != STATUS_ABORTED) && (data.devices_status != STATUS_QUIT) && (data.devices_status != STATUS_BYPASS))
- {
- data.devices_status = STATUS_EXHAUSTED;
- }
-
logfile_sub_var_uint ("status-after-work", data.devices_status);
data.restore = 0;
global_free (subid);
- // from this point we handle bypass as exhausted
+ // from this point we handle bypass as running
if (data.devices_status == STATUS_BYPASS)
{
- data.devices_status = STATUS_EXHAUSTED;
+ data.devices_status = STATUS_RUNNING;
}
// finalize task
// wait for non-interactive threads
+ if ((data.devices_status != STATUS_CRACKED) && (data.devices_status != STATUS_ABORTED) && (data.devices_status != STATUS_QUIT))
+ {
+ data.devices_status = STATUS_EXHAUSTED;
+ }
+
for (uint thread_idx = 0; thread_idx < ni_threads_cnt; thread_idx++)
{
hc_thread_wait (1, &ni_threads[thread_idx]);