Setting exception on connection failure.
This commit is contained in:
@@ -131,12 +131,15 @@ namespace Wino.Core.UWP.Services
|
|||||||
|
|
||||||
ConnectingHandle?.TrySetException(canceledException);
|
ConnectingHandle?.TrySetException(canceledException);
|
||||||
|
|
||||||
|
Status = WinoServerConnectionStatus.Failed;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
Log.Error(ex, "Failed to connect to the server.");
|
Log.Error(ex, "Failed to connect to the server.");
|
||||||
|
|
||||||
|
ConnectingHandle?.TrySetException(ex);
|
||||||
|
|
||||||
Status = WinoServerConnectionStatus.Failed;
|
Status = WinoServerConnectionStatus.Failed;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user