]> granicus.if.org Git - ejabberd/commitdiff
Make sure only {exit, normal} is not catched when executing a hook
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 23 Jan 2017 18:52:25 +0000 (21:52 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 23 Jan 2017 18:52:25 +0000 (21:52 +0300)
src/ejabberd_hooks.erl

index 9f782b235688b63ec72632faa904993e631799ea..602ac577fe1160372986682226f94514d3c7ee05 100644 (file)
@@ -379,7 +379,7 @@ safe_apply(Hook, Module, Function, Args) ->
        true ->
                apply(Module, Function, Args)
        end
-    catch E:R when E /= exit, R /= normal ->
+    catch E:R when E /= exit; R /= normal ->
            ?ERROR_MSG("Hook ~p crashed when running ~p:~p/~p:~n"
                       "** Reason = ~p~n"
                       "** Arguments = ~p",