aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2014-03-26 15:31:41 +0100
committerDan Gudmundsson <[email protected]>2014-03-26 15:31:41 +0100
commitc15c7c6b2117320aa5feb2c77781634d055cfcd7 (patch)
treea9bcaad022dffa79e9ecd9ad5c2fbb7fcb172478 /lib/wx/src
parent3a51f434c6a79bbf7dca8b0fd96a5df7671b5792 (diff)
downloadotp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.tar.gz
otp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.tar.bz2
otp-c15c7c6b2117320aa5feb2c77781634d055cfcd7.zip
wx: Send destroy message direct
Messages was routed via the wxe_server process, which caused process to never get the message.
Diffstat (limited to 'lib/wx/src')
-rw-r--r--lib/wx/src/wxe_server.erl13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/wx/src/wxe_server.erl b/lib/wx/src/wxe_server.erl
index aed9dca7ce..465b9da2e0 100644
--- a/lib/wx/src/wxe_server.erl
+++ b/lib/wx/src/wxe_server.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -192,17 +192,6 @@ handle_info({'DOWN',_,process,Pid,_}, State=#state{users=Users0,cleaners=Cs}) ->
{noreply, State}
end;
-handle_info(Msg = {'_wxe_destroy_', Pid}, State)
- when is_pid(Pid) ->
- case erlang:is_process_alive(Pid) of
- true ->
- Pid ! Msg,
- ok;
- false ->
- ok
- end,
- {noreply, State};
-
handle_info(_Info, State) ->
?log("Unknown message ~p sent to ~p~n",[_Info, ?MODULE]),
{noreply, State}.