From 918defcaea2b570a927a2884ce0e720b03e32d8a Mon Sep 17 00:00:00 2001 From: Alex Borisov Date: Thu, 1 Dec 2011 03:11:09 +0200 Subject: FIX file transfer; FIX packet parsing bug; + many various fixes and improvements --- client/UpdatedConfig.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/UpdatedConfig.cpp') diff --git a/client/UpdatedConfig.cpp b/client/UpdatedConfig.cpp index a59bc67..99a89db 100644 --- a/client/UpdatedConfig.cpp +++ b/client/UpdatedConfig.cpp @@ -65,10 +65,12 @@ void UpdatedConfig::update() retryFailed = false; } + /* if (! (updateStatus & (1 << SslClient::Config))) { client->SendRequest(SslClient::Config); } + */ if (! (updateStatus & (1 << SslClient::GenericProxyList))) { client->SendRequest(SslClient::GenericProxyList); @@ -113,7 +115,7 @@ void UpdatedConfig::gotServerReply(SslClient::RequestType &type, QByteArray &con Logger::Trace("Got server reply w type: %x\n", type); if (confdata.size() == 0) { - Logger::Warn("Empty server reply recieved"); + Logger::Warn("Empty server reply recieved\n"); goto end; } @@ -149,7 +151,7 @@ void UpdatedConfig::gotServerReply(SslClient::RequestType &type, QByteArray &con updateStatus |= (1 << type); end: - if (updateStatus != 0x7E) + if (updateStatus != UPDATED_STATE_FULL) { Logger::Trace("Still need to update other config parts. Update status: %x\n", updateStatus); update(); -- cgit v1.2.3