Skip to content

Commit

Permalink
return immediately if emulation is already done. this fixes issue #65
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Aug 29, 2015
1 parent 8aba317 commit ab27c6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uc.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,9 @@ uc_err uc_emu_stop(uch handle)
// invalid handle
return UC_ERR_UCH;

if (uc->emulation_done)
return UC_ERR_OK;

uc->stop_request = true;
// exit the current TB
cpu_exit(uc->current_cpu);
Expand Down

0 comments on commit ab27c6a

Please sign in to comment.