aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-14 09:55:17 +0100
committerDan Gudmundsson <[email protected]>2015-01-14 09:55:17 +0100
commit1832b99d1a5424781cf2c02577500b3e5dba9b55 (patch)
tree8b13db0fa3834c71d1df4583dd7aea956eafed97 /lib/wx
parent0d0623c6809fc02e7d3118036ad227bcd39fcc53 (diff)
parent6624d531fddfb09a86b6960d76f9174bf5c686e4 (diff)
downloadotp-1832b99d1a5424781cf2c02577500b3e5dba9b55.tar.gz
otp-1832b99d1a5424781cf2c02577500b3e5dba9b55.tar.bz2
otp-1832b99d1a5424781cf2c02577500b3e5dba9b55.zip
Merge branch 'maint'
* maint: wx: Fix connect when terminating
Diffstat (limited to 'lib/wx')
-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)},