From 744bc2a614bf373b341cf8cb798a9d56ed31c155 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 24 Oct 2010 16:40:02 +0000 Subject: (svn r21027) -Change/Fix: under some circumstances the file handle of the downloaded savegame wouldn't be closed, and validity of the handled wasn't checked in all cases --- src/network/network_client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network/network_client.h') diff --git a/src/network/network_client.h b/src/network/network_client.h index bdf8209a5..578b8026b 100644 --- a/src/network/network_client.h +++ b/src/network/network_client.h @@ -18,6 +18,9 @@ /** Class for handling the client side of the game connection. */ class ClientNetworkGameSocketHandler : public ZeroedMemoryAllocator, public NetworkGameSocketHandler { +private: + FILE *download_file; ///< Handle used for downloading the savegame. + protected: friend void NetworkExecuteLocalCommandQueue(); friend void NetworkClose(bool close_admins); -- cgit v1.2.3-54-g00ecf