aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-14 09:54:27 +0100
committerDan Gudmundsson <[email protected]>2015-01-14 09:54:27 +0100
commit6624d531fddfb09a86b6960d76f9174bf5c686e4 (patch)
tree0d547f4626452859174b7e69f2a122db42d18824
parenta4449c481a6c887166097fd28f545876f6791625 (diff)
parentf185b98053550a214b6af583c95d63096c0c5989 (diff)
downloadotp-6624d531fddfb09a86b6960d76f9174bf5c686e4.tar.gz
otp-6624d531fddfb09a86b6960d76f9174bf5c686e4.tar.bz2
otp-6624d531fddfb09a86b6960d76f9174bf5c686e4.zip
Merge branch 'dgud/wx/connect-when-terminating/OTP-12374' into maint
* dgud/wx/connect-when-terminating/OTP-12374: wx: Fix connect when terminating
-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)},