diff --git a/src/helper/command.c b/src/helper/command.c index 035b7dbc761cf6da865a7f8fb118b8fe041e8655..c4edcc7f113b8cf42f45d7b75e224c8695cabb64 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -693,7 +693,7 @@ int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **ar if (argc == 1) { duration = strtoul(args[0], NULL, 0); - usleep(duration * 1000); + alive_sleep(duration); } return ERROR_OK;