From: Badlop Date: Sat, 15 Dec 2007 13:01:32 +0000 (+0000) Subject: * src/mod_irc/iconv.erl: Changed order of handle_info X-Git-Tag: v2.0.0~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b91ebcc85339803812f9a250f08db7b4c1dd4a0;p=ejabberd * src/mod_irc/iconv.erl: Changed order of handle_info clause (EJAB-290) * src/stringprep/stringprep.erl: Likesise * src/eldap/eldap.erl: Removed handle_sync_event clause because it is never called (EJAB-290) SVN Revision: 1072 --- diff --git a/ChangeLog b/ChangeLog index 06e3c74d4..737346b66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2007-12-15 Badlop + * src/mod_irc/iconv.erl: Changed order of handle_info + clause (EJAB-290) + * src/stringprep/stringprep.erl: Likesise + + * src/eldap/eldap.erl: Removed handle_sync_event clause because it + is never called (EJAB-290) + * src/mod_irc/mod_irc.erl: No need to translate copyright notice * src/mod_muc/mod_muc.erl: Likewise * src/mod_proxy65/mod_proxy65_service.erl: Likewise diff --git a/src/eldap/eldap.erl b/src/eldap/eldap.erl index 59233c792..6dc6a6082 100644 --- a/src/eldap/eldap.erl +++ b/src/eldap/eldap.erl @@ -490,11 +490,6 @@ handle_sync_event({debug_level, N}, _From, StateName, S) -> handle_sync_event(_Event, _From, StateName, S) -> {reply, {StateName, S}, StateName, S}. -%% TODO: Check this clause, because it never matches: -%%handle_sync_event(Event, From, StateName, S) -> -%% Reply = ok, -%% {reply, Reply, StateName, S}. - %%---------------------------------------------------------------------- %% Func: handle_info/3 %% Returns: {next_state, NextStateName, NextStateData} | diff --git a/src/mod_irc/iconv.erl b/src/mod_irc/iconv.erl index b3502c55f..900efcbbb 100644 --- a/src/mod_irc/iconv.erl +++ b/src/mod_irc/iconv.erl @@ -50,11 +50,10 @@ handle_call(_, _, State) -> handle_cast(_, State) -> {noreply, State}. +handle_info({'EXIT', Port, Reason}, Port) -> + {stop, {port_died, Reason}, Port}; handle_info({'EXIT', _Pid, _Reason}, Port) -> {noreply, Port}; -%% TODO: Check this clause, because it never matches: -%%handle_info({'EXIT', Port, Reason}, Port) -> -%% {stop, {port_died, Reason}, Port}; handle_info(_, State) -> {noreply, State}. diff --git a/src/stringprep/stringprep.erl b/src/stringprep/stringprep.erl index 981dcdf61..50d82cd60 100644 --- a/src/stringprep/stringprep.erl +++ b/src/stringprep/stringprep.erl @@ -57,11 +57,10 @@ handle_call(_, _, State) -> handle_cast(_, State) -> {noreply, State}. +handle_info({'EXIT', Port, Reason}, Port) -> + {stop, {port_died, Reason}, Port}; handle_info({'EXIT', _Pid, _Reason}, Port) -> {noreply, Port}; -%% TODO: Check if this clase is correct: it never matches: -%%handle_info({'EXIT', Port, Reason}, Port) -> -%% {stop, {port_died, Reason}, Port}; handle_info(_, State) -> {noreply, State}.