From fa8a74d6d95d4a1a93bf963d8a82d548d00605d2 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 30 Sep 2016 13:40:43 +0200 Subject: [PATCH] Fix ctrl-c in benchmark mode --- src/thread.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/thread.c b/src/thread.c index 5e045aa38..d2105feb4 100644 --- a/src/thread.c +++ b/src/thread.c @@ -118,7 +118,7 @@ void hc_signal (void (callback) (int)) void mycracked (status_ctx_t *status_ctx) { - if (status_ctx->devices_status != STATUS_RUNNING) return; + //if (status_ctx->devices_status != STATUS_RUNNING) return; status_ctx->devices_status = STATUS_CRACKED; @@ -131,7 +131,8 @@ void mycracked (status_ctx_t *status_ctx) void myabort (status_ctx_t *status_ctx) { - if (status_ctx->devices_status != STATUS_RUNNING) return; + //those checks create problems in benchmark mode, it's simply too short of a timeframe where it's running as STATUS_RUNNING + //if (status_ctx->devices_status != STATUS_RUNNING) return; status_ctx->devices_status = STATUS_ABORTED; @@ -144,7 +145,7 @@ void myabort (status_ctx_t *status_ctx) void myquit (status_ctx_t *status_ctx) { - if (status_ctx->devices_status != STATUS_RUNNING) return; + //if (status_ctx->devices_status != STATUS_RUNNING) return; status_ctx->devices_status = STATUS_QUIT; @@ -157,7 +158,7 @@ void myquit (status_ctx_t *status_ctx) void bypass (status_ctx_t *status_ctx) { - if (status_ctx->devices_status != STATUS_RUNNING) return; + //if (status_ctx->devices_status != STATUS_RUNNING) return; status_ctx->devices_status = STATUS_BYPASS;