]> granicus.if.org Git - ejabberd/commitdiff
Set wait_timer to undefined when timer was triggered
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 26 Jul 2018 15:28:51 +0000 (17:28 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 26 Jul 2018 15:29:35 +0000 (17:29 +0200)
src/ejabberd_bosh.erl

index dcb1943e3cc8724d6e9c0d733acbe3586865c6c3..91aae923d0ad546c52296f485ecae2eed099210c 100644 (file)
@@ -572,7 +572,8 @@ handle_sync_event(_Event, _From, StateName, State) ->
 
 handle_info({timeout, TRef, wait_timeout}, StateName,
            #state{wait_timer = TRef} = State) ->
-    {next_state, StateName, drop_holding_receiver(State)};
+    State2 = State#state{wait_timer = undefined},
+    {next_state, StateName, drop_holding_receiver(State2)};
 handle_info({timeout, TRef, inactive}, _StateName,
            #state{inactivity_timer = TRef} = State) ->
     {stop, normal, State};