Fix chan_zap reload with pseudo channels (bug 2664)
authorJames Golovich <james@gnuinter.net>
Sun, 17 Oct 2004 05:05:22 +0000 (05:05 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 17 Oct 2004 05:05:22 +0000 (05:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4028 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 9a223d1..0855ab6 100755 (executable)
@@ -9628,7 +9628,7 @@ static int setup_zap(int reload)
                        ast_log(LOG_WARNING, "Ignoring %s\n", v->name);
                v = v->next;
        }
-       if (!found_pseudo) {
+       if (!found_pseudo && reload == 0) {
        
                /* Make sure pseudo isn't a member of any groups if
                   we're automatically making it. */