mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +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)
|
if (iax2_regfunk)
|
||||||
iax2_regfunk(p->name, 0);
|
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);
|
ast_set_flag(p, IAX_DELME);
|
||||||
prune_peers();
|
prune_peers();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user