* src/web/ejabberd_http_poll.erl: Bugfix: using tuple instead of a Pid

to send Erlang messages in a rarely used case.

SVN Revision: 580
This commit is contained in:
Mickaël Rémond 2006-06-15 13:32:48 +00:00
parent bd276f0b07
commit 7d0f9ddce2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-06-15 Mickael Remond <mickael.remond@process-one.net>
* src/web/ejabberd_http_poll.erl: Bugfix: using tuple instead of a Pid
to send Erlang messages in a rarely used case.
2006-06-13 Mickael Remond <mickael.remond@process-one.net>
* src/ejabberd_auth.erl: Fixed broken multiple connection with

View File

@ -204,7 +204,8 @@ handle_sync_event(activate, From, StateName, StateData) ->
"" ->
{reply, ok, StateName, StateData#state{waiting_input = From}};
Input ->
From ! {tcp, {http_poll, self()}, list_to_binary(Input)},
{Receiver, _Tag} = From,
Receiver ! {tcp, {http_poll, self()}, list_to_binary(Input)},
{reply, ok, StateName, StateData#state{input = "",
waiting_input = false,
last_receiver = From