Setting exception on connection failure.

This commit is contained in:
Burak Kaan Köse
2024-08-13 16:14:25 +02:00
parent a8a5cc53ea
commit 10c7ab421b

View File

@@ -131,12 +131,15 @@ namespace Wino.Core.UWP.Services
ConnectingHandle?.TrySetException(canceledException);
Status = WinoServerConnectionStatus.Failed;
return false;
}
catch (Exception ex)
{
Log.Error(ex, "Failed to connect to the server.");
ConnectingHandle?.TrySetException(ex);
Status = WinoServerConnectionStatus.Failed;
return false;
}