Fixed problem with premature destruction of ZAssocChild object
[metaproxy-moved-to-github.git] / src / filter_frontend_net.cpp
index ac85e41..71cd711 100644 (file)
@@ -219,7 +219,8 @@ void mp::ZAssocChild::failNotify()
     // TODO: send Package to signal "close"
     if (m_session.is_closed())
     {
-        delete this;
+        if (m_no_requests == 0)
+            delete this;
        return;
     }
     m_no_requests++;