mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-04 00:56:09 +02:00
Catch SocketException when listing remote files
This commit is contained in:
@@ -197,11 +197,7 @@ public class HostCommands(HostsManager hostsManager)
|
|||||||
ApiManager.SendNotificationMessageNewLine($"Invalid response!", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine($"Invalid response!", NotificationMessageType.Error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (SocketException ex)
|
catch (Exception ex) when (ex is SocketException or IOException or AggregateException)
|
||||||
{
|
|
||||||
ApiManager.SendNotificationMessageNewLine($"Invalid host! Error message: {ex.Message}", NotificationMessageType.Error);
|
|
||||||
}
|
|
||||||
catch (IOException ex)
|
|
||||||
{
|
{
|
||||||
ApiManager.SendNotificationMessageNewLine($"Invalid host! Error message: {ex.Message}", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine($"Invalid host! Error message: {ex.Message}", NotificationMessageType.Error);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user