Remove invalid sleep from cmd_open()

This commit is contained in:
Florian Märkl 2019-01-24 18:04:29 +01:00
parent f9d4ab6f65
commit b022c95334

View File

@ -1210,7 +1210,6 @@ static int cmd_open(void *data, const char *input) {
}
{
const char *argv0 = argv ? argv[0] : ptr;
void *bed = r_cons_sleep_begin ();
if ((file = r_core_file_open (core, argv0, perms, addr))) {
fd = file->fd;
if (!silence) {
@ -1221,7 +1220,6 @@ static int cmd_open(void *data, const char *input) {
eprintf ("cannot open file %s\n", argv0);
}
r_str_argv_free (argv);
r_cons_sleep_end (bed);
}
r_core_block_read (core);
return 0;