Skip to content

Commit f394dc7

Browse files
committed
Test to fix some connect timeouts
1 parent 7770e14 commit f394dc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MTA10/core/CConnectManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ bool CConnectManager::Connect ( const char* szHost, unsigned short usPort, const
116116
if ( !CCore::GetSingleton ().CheckDiskSpace () )
117117
return false;
118118

119+
// Test: Fix some timeouts by trying a tcp connection
120+
pNet->GetHTTPDownloadManager ( EDownloadMode::CORE_UPDATER )->QueueFile ( m_strHost.c_str(), NULL, 0, "", 0, true, NULL, NULL, false, 1, 2000 );
121+
119122
// Set our packet handler
120123
pNet->RegisterPacketHandler ( CConnectManager::StaticProcessPacket );
121124

0 commit comments

Comments
 (0)