From 506c3ca1f1481d722576fd59887bc5f06581528d Mon Sep 17 00:00:00 2001 From: Siri Hansen Date: Tue, 30 Sep 2014 10:07:55 +0200 Subject: Fix dialyzer warnings for unmatched return in gen_event This was introduced by PR 445, commit 2e78c5f3e7f9991484ceb5d56e5b0086331101be. --- lib/stdlib/src/gen_event.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/stdlib/src/gen_event.erl') diff --git a/lib/stdlib/src/gen_event.erl b/lib/stdlib/src/gen_event.erl index 40c5a93d59..469acdc37c 100644 --- a/lib/stdlib/src/gen_event.erl +++ b/lib/stdlib/src/gen_event.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2013. All Rights Reserved. +%% Copyright Ericsson AB 1996-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 @@ -302,7 +302,8 @@ terminate_server(Reason, Parent, MSL, ServerName) -> exit(Reason). reply({From, Ref}, Msg) -> - From ! {Ref, Msg}. + From ! {Ref, Msg}, + ok. %% unlink the supervisor process of all supervised handlers. %% We do not want a handler supervisor to EXIT due to the -- cgit v1.2.3