@@ -495,7 +495,7 @@ private void MainScreen_Load(object sender, EventArgs e) {
495
495
translatedBy . Text = "" ;
496
496
ContextMenu = new ContextMenu ( ) ;
497
497
498
- ContextMenu . MenuItems . Add ( new MenuItem ( "Donate" , ( b , n ) => { Process . Start ( "http ://paypal.me/metonator95" ) ; } ) ) ;
498
+ ContextMenu . MenuItems . Add ( new MenuItem ( "Donate" , ( b , n ) => { Process . Start ( "https ://paypal.me/metonator95" ) ; } ) ) ;
499
499
ContextMenu . MenuItems . Add ( "-" ) ;
500
500
ContextMenu . MenuItems . Add ( new MenuItem ( "Settings" , SettingsButton_Click ) ) ;
501
501
ContextMenu . MenuItems . Add ( new MenuItem ( "Add Server" , AddServer_Click ) ) ;
@@ -2412,8 +2412,8 @@ private void PlayButton_Click(object sender, EventArgs e) {
2412
2412
foreach ( string file in newFiles ) {
2413
2413
playProgressText . Text = ( "Fetching ModNetReloaded Files: " + file ) . ToUpper ( ) ;
2414
2414
Application . DoEvents ( ) ;
2415
-
2416
- newModNetFilesDownload . DownloadFile ( "https ://cdn.soapboxrace.world/modules-v2/" + file , _settingFile . Read ( "InstallationDirectory" ) + "/" + file ) ;
2415
+ newModNetFilesDownload . Timeout ( 8000 ) ;
2416
+ newModNetFilesDownload . DownloadFile ( "http ://cdn.soapboxrace.world/modules-v2/" + file , _settingFile . Read ( "InstallationDirectory" ) + "/" + file ) ;
2417
2417
}
2418
2418
2419
2419
//get files now
@@ -2424,8 +2424,12 @@ private void PlayButton_Click(object sender, EventArgs e) {
2424
2424
try
2425
2425
{
2426
2426
//Cached content goes here
2427
- EventList . remoteEvent = new WebClientWithTimeout ( ) . DownloadString ( json2 . basePath + "/events.json" ) ;
2428
- CarList . remoteCarList = new WebClientWithTimeout ( ) . DownloadString ( json2 . basePath + "/cars.json" ) ;
2427
+ EventList . remoteEvent = new WebClientWithTimeout ( ) . DownloadString ( json2 . BasePath + "/events.json" ) ;
2428
+ }
2429
+ catch { }
2430
+ try
2431
+ {
2432
+ CarList . remoteCarList = new WebClientWithTimeout ( ) . DownloadString ( json2 . BasePath + "/cars.json" ) ;
2429
2433
}
2430
2434
catch { }
2431
2435
0 commit comments