From: Jens Steube Date: Mon, 27 Jun 2016 07:25:34 +0000 (+0200) Subject: Set exhausted status was too late X-Git-Tag: v3.00~6 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=cf9c184cd54652cf646526c0e80e82b59bd01e77;hp=772e2ac33fc45b9284fe84f7e5f00b809b0135b7;p=hashcat.git Set exhausted status was too late --- diff --git a/src/hashcat.c b/src/hashcat.c index 8f89937..1e106c8 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -18170,6 +18170,11 @@ int main (int argc, char **argv) local_free (c_threads); + if ((data.devices_status != STATUS_CRACKED) && (data.devices_status != STATUS_ABORTED) && (data.devices_status != STATUS_QUIT)) + { + data.devices_status = STATUS_EXHAUSTED; + } + logfile_sub_var_uint ("status-after-work", data.devices_status); data.restore = 0; @@ -18311,11 +18316,6 @@ int main (int argc, char **argv) // 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 < inner_threads_cnt; thread_idx++) { hc_thread_wait (1, &inner_threads[thread_idx]);