Fix apparent logic error that causes unregistered non-realtime peers to be destroyed...
authorMark Spencer <markster@digium.com>
Sat, 12 Feb 2005 20:15:15 +0000 (20:15 +0000)
committerMark Spencer <markster@digium.com>
Sat, 12 Feb 2005 20:15:15 +0000 (20:15 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5014 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 029294f..0d4d192 100755 (executable)
@@ -4994,7 +4994,7 @@ static int expire_registry(void *data)
        if (iax2_regfunk)
                iax2_regfunk(p->name, 0);
 
-       if (!ast_test_flag(p, IAX_RTAUTOCLEAR)) {
+       if (ast_test_flag(p, IAX_RTAUTOCLEAR)) {
                ast_set_flag(p, IAX_DELME);
                prune_peers();
        }