mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user