diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl index 9bac6f39b..98ae6b950 100644 --- a/src/mod_pubsub/mod_pubsub.erl +++ b/src/mod_pubsub/mod_pubsub.erl @@ -367,7 +367,7 @@ send_loop(State) -> case S of ServerHost -> %% local contact, so we may have pep items PeerJID = 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;