diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index cf2881c7a..21042fcfe 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -369,7 +369,7 @@ send_loop(State) -> case S of ServerHost -> %% local contact, so we may have pep items PeerJID = exmpp_jlib:make_jid(U, S, R), - handle_cast({presence, User, Server, [Resource], PeerJID}, State); + self() ! {presence, User, Server, [Resource], PeerJID}; _ -> %% remote contact, no items available ok end;