From cf380c93816d5b5ecce4e073519e75a038dc8695 Mon Sep 17 00:00:00 2001 From: Bianco Veigel Date: Mon, 15 Nov 2021 18:13:16 +0100 Subject: [PATCH] handle connection errors --- src/ommstats/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ommstats/Program.cs b/src/ommstats/Program.cs index 77875be..d97b713 100644 --- a/src/ommstats/Program.cs +++ b/src/ommstats/Program.cs @@ -71,6 +71,10 @@ static async Task Main(string[] args) catch (OperationCanceledException) { } + catch (SocketException ex) + { + logger.LogError(ex, "Error while executing OmmStats"); + } catch (Exception ex) { logger.LogError(ex, "Error while executing OmmStats");