]> granicus.if.org Git - ejabberd/commitdiff
mod_stream_mgmt: Fix 'if_offline' detection
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 25 Apr 2017 20:32:03 +0000 (22:32 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 25 Apr 2017 20:32:03 +0000 (22:32 +0200)
src/mod_stream_mgmt.erl

index a1d1ba2e97195af665961333042237a9f6c6d1c8..02fd60763c777d985c6eeccfa940f8f62ac388fb 100644 (file)
@@ -522,7 +522,7 @@ route_unacked_stanzas(#{mgmt_state := MgmtState,
                          Resend when is_boolean(Resend) ->
                              Resend;
                          if_offline ->
-                             case ejabberd_sm:get_user_resources(User, Resource) of
+                             case ejabberd_sm:get_user_resources(User, Server) of
                                  [Resource] ->
                                      %% Same resource opened new session
                                      true;