Skip to content

Commit

Permalink
fix ptr error
Browse files Browse the repository at this point in the history
  • Loading branch information
karasevia committed Jul 16, 2023
1 parent f9d3091 commit a1b1d88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ void eth_run(EthWorker* worker, EthWorkerProcess process) {
eth_log(EthWorkerProcessPing, "Fuck you");
break;
case EthWorkerProcessReset:
worker->state = worker->next_state = EthWorkerStateNotInited;
worker->next_state = EthWorkerStateNotInited;
if((uint8_t)worker->state > EthWorkerStateNotAllocated) {
worker->state = EthWorkerStateNotInited;
}
eth_log(EthWorkerProcessReset, "reset module");
break;
case EthWorkerProcessExit:
Expand Down

0 comments on commit a1b1d88

Please sign in to comment.