]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't bother reloading chan_h323 if it did not load successfully in the first place...
authorJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2007 15:25:45 +0000 (15:25 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 18 Jul 2007 15:25:45 +0000 (15:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@75619 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_h323.c

index cdc61440fc5f380115c432a2ec08ab426fb818ad..c13ede3c38c51b70edf28dc7eae6163601566c4d 100644 (file)
@@ -2999,6 +2999,10 @@ static int h323_do_reload(void)
 
 static int reload(void)
 {
+       if (!sched || !io) {
+               ast_log(LOG_NOTICE, "Unload and load chan_h323.so again in order to receive configuration changes.\n");
+               return 0;
+       }
        return h323_reload(0, 0, NULL);
 }