aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-13 15:38:45 +0100
committerDan Gudmundsson <[email protected]>2015-01-14 09:51:47 +0100
commitf185b98053550a214b6af583c95d63096c0c5989 (patch)
treedc80992974dec43ffac9fb8c24c396ceb5c7d9e1
parent8956d9d02190cac3a82b89eb23b68b3494ed390f (diff)
downloadotp-f185b98053550a214b6af583c95d63096c0c5989.tar.gz
otp-f185b98053550a214b6af583c95d63096c0c5989.tar.bz2
otp-f185b98053550a214b6af583c95d63096c0c5989.zip
wx: Fix connect when terminating
The ddbe8a821ad commit was embarrassingly broken.
-rw-r--r--lib/wx/src/wxe_server.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/wx/src/wxe_server.erl b/lib/wx/src/wxe_server.erl
index 8ef568c102..153e2475ba 100644
--- a/lib/wx/src/wxe_server.erl
+++ b/lib/wx/src/wxe_server.erl
@@ -227,7 +227,7 @@ handle_connect(Object, EvData=#evh{handler=Handler},
From, State0 = #state{users=Users}) ->
%% Correct process is already listening just register it
put(Handler, From),
- case gb_trees:get(From, Users) of
+ case gb_trees:lookup(From, Users) of
{value, User0 = #user{events=Listeners0}} ->
User = User0#user{events=[{Object,EvData}|Listeners0]},
State = State0#state{users=gb_trees:update(From, User, Users)},