decrement active connection counter in mail proxy
diff --git a/src/mail/ngx_mail_handler.c b/src/mail/ngx_mail_handler.c
index 73bfbd2..9c83bdb 100644
--- a/src/mail/ngx_mail_handler.c
+++ b/src/mail/ngx_mail_handler.c
@@ -2100,6 +2100,10 @@
 
 #endif
 
+#if (NGX_STAT_STUB)
+    ngx_atomic_fetch_add(ngx_stat_active, -1);
+#endif
+
     c->destroyed = 1;
 
     pool = c->pool;