Changed decode failure handling a bit so that failNotify is called.
[yazpp-moved-to-github.git] / src / yaz-z-assoc.cpp
index 7da1676..04bea5b 100644 (file)
@@ -93,7 +93,8 @@ void Z_Assoc::recv_PDU(const char *buf, int len)
     }
     else
     {
-        close();
+        m_PDU_Observable->shutdown();
+        failNotify();
     }
 }