Simplified exception naming

This commit is contained in:
IceStormNG
2023-07-30 10:48:02 +02:00
parent e0795dd16b
commit 6d66831770

View File

@@ -263,12 +263,12 @@ namespace GHelper.Peripherals.Mouse
OnDisconnect();
return null;
}
catch (System.TimeoutException e)
catch (TimeoutException e)
{
Logger.WriteLine(GetDisplayName() + ": Timeout reading packet " + e.Message);
return null;
}
catch (System.ObjectDisposedException e)
catch (ObjectDisposedException)
{
Logger.WriteLine(GetDisplayName() + ": Channel closed ");
OnDisconnect();