summaryrefslogtreecommitdiff
path: root/main/astobj2.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/astobj2.c')
-rw-r--r--main/astobj2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2.c b/main/astobj2.c
index 1db2dd42d..ed91577be 100644
--- a/main/astobj2.c
+++ b/main/astobj2.c
@@ -928,7 +928,7 @@ int ao2_weakproxy_subscribe(void *weakproxy, ao2_weakproxy_notification_cb cb, v
if (sub) {
sub->cb = cb;
sub->data = data;
- AST_LIST_INSERT_TAIL(&weak->destroyed_cb, sub, list);
+ AST_LIST_INSERT_HEAD(&weak->destroyed_cb, sub, list);
ret = 0;
}
} else {