Fix apparent logic error that causes unregistered non-realtime peers to be destroyed (bug #3569)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
dd7e4ef47a
commit
ddcfe8d3af
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue