mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Return send() result to the caller
This commit is contained in:
parent
8918227fc3
commit
23c5fd9a4f
@ -801,8 +801,8 @@ receiver(NS, Owner, Socket, MRef) ->
|
|||||||
Owner ! {Ref, ok},
|
Owner ! {Ref, ok},
|
||||||
receiver(NS, Owner, ZlibSocket, MRef);
|
receiver(NS, Owner, ZlibSocket, MRef);
|
||||||
{Ref, {send_text, Text}} ->
|
{Ref, {send_text, Text}} ->
|
||||||
ok = xmpp_socket:send(Socket, Text),
|
Ret = xmpp_socket:send(Socket, Text),
|
||||||
Owner ! {Ref, ok},
|
Owner ! {Ref, Ret},
|
||||||
receiver(NS, Owner, Socket, MRef);
|
receiver(NS, Owner, Socket, MRef);
|
||||||
{Ref, close} ->
|
{Ref, close} ->
|
||||||
xmpp_socket:close(Socket),
|
xmpp_socket:close(Socket),
|
||||||
|
Loading…
Reference in New Issue
Block a user