- attempt to see if this fixes issue# 111

This commit is contained in:
SoftCoder 2016-06-01 20:31:46 -07:00
parent ad4314fb29
commit c3db863434
3 changed files with 10 additions and 7 deletions

View File

@ -126,6 +126,9 @@ static Program *mainProgram = NULL;
static FileCRCPreCacheThread *preCacheThread = NULL;
#ifdef WIN32
static string runtimeErrorMsg = "";
// keeps in scope for duration of the application
auto_ptr<SocketManager> winSockManager(new SocketManager());
#endif
#ifdef HAVE_GOOGLE_BREAKPAD
@ -4246,9 +4249,9 @@ int glestMain(int argc, char** argv) {
#ifdef WIN32
SocketManager winSockManager;
#endif
//#ifdef WIN32
//SocketManager winSockManager;
//#endif
bool haveSpecialOutputCommandLineOption = false;

View File

@ -129,9 +129,9 @@ public:
class Socket {
protected:
#ifdef WIN32
static SocketManager wsaManager;
#endif
//#ifdef WIN32
//static SocketManager wsaManager;
//#endif
PLATFORM_SOCKET sock;
time_t lastDebugEvent;
static int broadcast_portno;

View File

@ -228,7 +228,7 @@ Mutex UPNP_Tools::mutexUPNP;
}
// keeps in scope for duration of the application
SocketManager Socket::wsaManager;
//SocketManager Socket::wsaManager;
SocketManager::SocketManager() {
WSADATA wsaData;