summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_mp.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-07 18:16:14 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-07 18:16:14 +0300
commite41425bb1f1e3eebdf10aa1da47d0affaf8f80d5 (patch)
tree4234d6930b61d39d238ea23eccb729515de240b4 /src/nxt_mp.c
parentfc9f73bbea940b003824aec914bf6ea948c09252 (diff)
downloadunit-e41425bb1f1e3eebdf10aa1da47d0affaf8f80d5.tar.gz
unit-e41425bb1f1e3eebdf10aa1da47d0affaf8f80d5.tar.bz2
Router: connection destroy sequence fixed.
Diffstat (limited to 'src/nxt_mp.c')
-rw-r--r--src/nxt_mp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_mp.c b/src/nxt_mp.c
index aafc1ab5..0b82cf2a 100644
--- a/src/nxt_mp.c
+++ b/src/nxt_mp.c
@@ -285,6 +285,8 @@ nxt_mp_destroy(nxt_mp_t *mp)
nxt_debug_alloc("mp destroy");
+ nxt_mp_thread_assert(mp);
+
next = nxt_rbtree_root(&mp->blocks);
while (next != nxt_rbtree_sentinel(&mp->blocks)) {