1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-23 15:18:16 +00:00

Do stdin read timeout check only in case no data has been processed

This commit is contained in:
Jens Steube 2018-10-20 18:53:14 +02:00
parent d96b649751
commit d4123333c0

View File

@ -285,6 +285,8 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
// stdin read timeout check
if (status_get_progress_done (hashcat_ctx) == 0)
{
if (status_ctx->stdin_read_timeout_cnt >= STDIN_TIMEOUT_MIN)
{
if (status_ctx->stdin_read_timeout_cnt >= STDIN_TIMEOUT_MAX)
@ -304,6 +306,7 @@ static int monitor (hashcat_ctx_t *hashcat_ctx)
}
}
}
}
// final round of save_hash