1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-03-24 10:18:47 +00:00
This commit is contained in:
SpoinkyNL 2016-12-29 00:43:26 +01:00
parent b91ad6fcdd
commit a0f6677964
2 changed files with 14 additions and 5 deletions

View File

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
@ -178,6 +179,9 @@ namespace Artemis.Modules.Effects.WindowsProfile
{
var tryCount = 0;
while (tryCount <= 10)
{
// Causes WebException if not internet connection is available
try
{
tryCount++;
var connected = _spotify.Connect();
@ -185,6 +189,12 @@ namespace Artemis.Modules.Effects.WindowsProfile
break;
Thread.Sleep(1000);
}
catch (WebException)
{
break;
}
}
_spotifySetupBusy = false;
});
}

View File

@ -46,7 +46,6 @@ namespace Artemis.Utilities
{
// These exceptions should only really occur when running from VS
Logger.Error(e, "Update check failed");
mgr.Result.Dispose();
}
}
}