Changed decode failure handling a bit so that failNotify is called.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 20 May 2008 14:04:11 +0000 (16:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 20 May 2008 14:04:11 +0000 (16:04 +0200)
Changed decode failure handling a bit so that failNotify is called.
But use shutdown rather than close_session.

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();
     }
 }