diff options
Diffstat (limited to 'src/rpc-server')
-rw-r--r-- | src/rpc-server/commands/trex_rpc_cmd_general.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/rpc-server/commands/trex_rpc_cmd_general.cpp b/src/rpc-server/commands/trex_rpc_cmd_general.cpp index d2546740..4d73714e 100644 --- a/src/rpc-server/commands/trex_rpc_cmd_general.cpp +++ b/src/rpc-server/commands/trex_rpc_cmd_general.cpp @@ -637,11 +637,9 @@ TrexRpcCmdPushRemote::_run(const Json::Value ¶ms, Json::Value &result) { } - /* IO might take time, increase timeout of WD */ - TrexMonitor * cur_monitor = TrexWatchDog::getInstance().get_current_monitor(); - if (cur_monitor != NULL) { - cur_monitor->io_begin(); - } + /* IO might take time, increase timeout of WD inside this function */ + TrexWatchDog::IOFunction dummy; + (void)dummy; try { port->push_remote(pcap_filename, ipg_usec, min_ipg_sec, speedup, count, duration, is_dual); @@ -649,11 +647,6 @@ TrexRpcCmdPushRemote::_run(const Json::Value ¶ms, Json::Value &result) { generate_execute_err(result, ex.what()); } - /* revert timeout of WD */ - if (cur_monitor != NULL) { - cur_monitor->io_end(); - } - result["result"] = Json::objectValue; return (TREX_RPC_CMD_OK); |