Fix invalid command quit
This commit is contained in:
parent
a43bc1e59d
commit
7f8666a006
|
@ -598,10 +598,9 @@ int main(int argc, char **argv, char **envp) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (lock) r_th_lock_enter (lock);
|
if (lock) r_th_lock_enter (lock);
|
||||||
if ((ret = r_core_prompt_exec (&r))==-1) {
|
/* -1 means invalid command, -2 means quit prompt loop */
|
||||||
|
if ((ret = r_core_prompt_exec (&r))==-2)
|
||||||
break;
|
break;
|
||||||
// eprintf ("Invalid command\n");
|
|
||||||
}
|
|
||||||
if (lock) r_th_lock_leave (lock);
|
if (lock) r_th_lock_leave (lock);
|
||||||
if (rabin_th && !r_th_wait_async (rabin_th)) {
|
if (rabin_th && !r_th_wait_async (rabin_th)) {
|
||||||
eprintf ("rabin thread end \n");
|
eprintf ("rabin thread end \n");
|
||||||
|
|
Loading…
Reference in New Issue