Fix inability to shutdown gracefully due to an unending channel reference.
[asterisk/asterisk.git] / main / asterisk.c
index 8e6d1a4..e8b9b34 100644 (file)
@@ -1702,6 +1702,7 @@ static int can_safely_quit(shutdown_nice_t niceness, int restart)
         * (if in batch mode). really_quit happens to call it again when running
         * the atexit handlers, otherwise this would be a bit early. */
        ast_cdr_engine_term();
+       ast_msg_shutdown();
 
        if (niceness == SHUTDOWN_NORMAL) {
                time_t s, e;