aboutsummaryrefslogtreecommitdiff
path: root/src/mod_proxy65_stream.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-07-17 20:50:58 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-07-17 20:50:58 +0200
commit68c9328a9c9c74df79e66d008a1d25ff64cfd33f (patch)
treead78006dfd881ff0b09a54a5132239c0fce01e66 /src/mod_proxy65_stream.erl
parentmod_http_upload: Add "Allow" to OPTIONS response (diff)
Move cancel_timer/1 function into 'misc' module
Diffstat (limited to '')
-rw-r--r--src/mod_proxy65_stream.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_proxy65_stream.erl b/src/mod_proxy65_stream.erl
index 0646e28c8..4e7aa0334 100644
--- a/src/mod_proxy65_stream.erl
+++ b/src/mod_proxy65_stream.erl
@@ -195,7 +195,7 @@ stream_established(_Data, StateData) ->
%% SOCKS5 packets.
handle_info({tcp, _S, Data}, StateName, StateData)
when StateName /= wait_for_activation ->
- erlang:cancel_timer(StateData#state.timer),
+ misc:cancel_timer(StateData#state.timer),
TRef = erlang:send_after(?WAIT_TIMEOUT, self(), stop),
p1_fsm:send_event(self(), Data),
{next_state, StateName, StateData#state{timer = TRef}};
@@ -203,7 +203,7 @@ handle_info({tcp, _S, Data}, StateName, StateData)
handle_info({activate, PeerPid, PeerSocket, IJid, TJid},
wait_for_activation, StateData) ->
erlang:monitor(process, PeerPid),
- erlang:cancel_timer(StateData#state.timer),
+ misc:cancel_timer(StateData#state.timer),
MySocket = StateData#state.socket,
Shaper = StateData#state.shaper,
Host = StateData#state.host,