From: Adam Dickmeiss Date: Mon, 13 Oct 2003 22:38:07 +0000 (+0000) Subject: Do not call pre_init in client::shutdown. Only in client::timeout X-Git-Tag: YAZPP.0.7.1~8 X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=commitdiff_plain;h=d7ed1a9024ed29911ac5ce2a58fb4996de63bf46 Do not call pre_init in client::shutdown. Only in client::timeout --- diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 39f53da..0752440 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-proxy.cpp,v 1.57 2003-10-13 19:16:29 adam Exp $ + * $Id: yaz-proxy.cpp,v 1.58 2003-10-13 22:38:07 adam Exp $ */ #include @@ -1189,8 +1189,6 @@ void Yaz_ProxyClient::shutdown() { yaz_log (LOG_LOG, "%sShutdown (proxy to target) %s", get_session_str(), get_hostname()); - m_waiting = 1; - m_root->pre_init(); delete m_server; delete this; } @@ -1362,6 +1360,8 @@ void Yaz_ProxyClient::timeoutNotify() { yaz_log (LOG_LOG, "%sTimeout (proxy to target) %s", get_session_str(), get_hostname()); + m_waiting = 1; + m_root->pre_init(); shutdown(); }