aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-01-05 16:41:10 +0100
committerDan Gudmundsson <[email protected]>2018-01-11 14:53:16 +0100
commitd15f455ba9fd705f02d8e8fdf718465c4a699be1 (patch)
tree110c6732e68a62e503284fc6c198152b9cefc7f1 /lib/observer/src
parent4cd303540533ec8b7d51b6079fbbf880c179a14f (diff)
downloadotp-d15f455ba9fd705f02d8e8fdf718465c4a699be1.tar.gz
otp-d15f455ba9fd705f02d8e8fdf718465c4a699be1.tar.bz2
otp-d15f455ba9fd705f02d8e8fdf718465c4a699be1.zip
observer: Don't crash for late messages
Diffstat (limited to 'lib/observer/src')
-rw-r--r--lib/observer/src/observer_tv_wx.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/observer/src/observer_tv_wx.erl b/lib/observer/src/observer_tv_wx.erl
index b9660534aa..2e387f7e74 100644
--- a/lib/observer/src/observer_tv_wx.erl
+++ b/lib/observer/src/observer_tv_wx.erl
@@ -200,8 +200,8 @@ handle_event(#wx{id=?ID_REFRESH_INTERVAL},
Timer = observer_lib:interval_dialog(Grid, Timer0, 10, 5*60),
{noreply, State#state{timer=Timer}};
-handle_event(Event, _State) ->
- error({unhandled_event, Event}).
+handle_event(_Event, State) ->
+ {noreply, State}.
handle_sync_event(_Event, _Obj, _State) ->
ok.