diff --git a/apps/iot/src/iot_host_device_poller.erl b/apps/iot/src/iot_host_device_poller.erl index 43c9834..483205c 100644 --- a/apps/iot/src/iot_host_device_poller.erl +++ b/apps/iot/src/iot_host_device_poller.erl @@ -148,7 +148,16 @@ handle_info({timeout, _, task_ticker}, State = #state{devices = Devices, status {noreply, State#state{tasks = Devices}}; ?STATUS_PAUSED -> {noreply, State#state{tasks = []}} - end. + end; + +%% 部分请求可能在task执行超时后才返回 +handle_info({ws_response, _Ref, Response}, State = #state{host_id = HostId}) -> + lager:debug("[iot_host_device_poller] host_id: ~p, get ws_response: ~p, after timeout", [HostId, Response]), + {noreply, State}; + +handle_info(Info, State = #state{host_id = HostId}) -> + lager:debug("[iot_host_device_poller] host_id: ~p, get unknown info: ~p, after timeout", [HostId, Info]), + {noreply, State}. %% @private %% @doc This function is called by a gen_server when it is about to