Skip to content

Commit

Permalink
Test to fix some connect timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Jul 13, 2015
1 parent 209837d commit 4942023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MTA10/core/CConnectManager.cpp
Expand Up @@ -116,6 +116,9 @@ bool CConnectManager::Connect ( const char* szHost, unsigned short usPort, const
if ( !CCore::GetSingleton ().CheckDiskSpace () )
return false;

// Test: Fix some timeouts by trying a tcp connection
pNet->GetHTTPDownloadManager ( EDownloadMode::CORE_UPDATER )->QueueFile ( m_strHost.c_str(), NULL, 0, "", 0, true, NULL, NULL, false, 1, 2000 );

// Set our packet handler
pNet->RegisterPacketHandler ( CConnectManager::StaticProcessPacket );

Expand Down

0 comments on commit 4942023

Please sign in to comment.