From d7ed1a9024ed29911ac5ce2a58fb4996de63bf46 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 13 Oct 2003 22:38:07 +0000 Subject: [PATCH] Do not call pre_init in client::shutdown. Only in client::timeout --- src/yaz-proxy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 1.7.10.4