diff --git a/examples/usrsocktest/usrsocktest_daemon.c b/examples/usrsocktest/usrsocktest_daemon.c index f9c80f84b..849339ab1 100644 --- a/examples/usrsocktest/usrsocktest_daemon.c +++ b/examples/usrsocktest/usrsocktest_daemon.c @@ -2053,6 +2053,12 @@ errout_closepipe: out: pthread_mutex_unlock(&daemon_mutex); usrsocktest_dbg("ret: %d\n", ret); + + if (ret == OK) + { + usleep(100); + } + return ret; } @@ -2329,6 +2335,11 @@ bool usrsocktest_send_delayed_command(const char cmd, sq_addlast(&delayed_cmd->node, &priv->delayed_cmd_threads); + if (ret == OK) + { + usleep(100); + } + return true; }