Trigger on_shutdown in the event of a fatal error.

This commit is contained in:
Elijah Perrault committed 2011-02-27 20:26:37 -07:00
1 parent bfa0baf51e
commit b48e77a4b3
1 file changed
+4 -1
+4 -1
View File
@@ -485,7 +485,10 @@ sub err ## no critic qw(Subroutines::ProhibitBuiltinHomonyms)
}
# If it's a fatal error, exit the program.
if ($fatal) { exit; }
if ($fatal) {
API::Std::event_run('on_shutdown');
exit;
}
return 1;
}