diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 332c319..5063b28 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,8 +1,8 @@ name: Build and Release dotNet -#on: [push] on: push: + branches: [ main ] paths-ignore: - '*.md' - '.github/**' @@ -114,7 +114,7 @@ jobs: build-project: - #if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true name: Build dotNet strategy: matrix: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 34c0e29..d7fe982 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ name: Docker Image CI -#on: [ push ] on: push: + branches: [ main, dev ] paths-ignore: - '*.md' - '.github/**' diff --git a/Services/WebSockClient.cs b/Services/WebSockClient.cs index 947e248..cf26a26 100644 --- a/Services/WebSockClient.cs +++ b/Services/WebSockClient.cs @@ -149,6 +149,13 @@ public async void Stop() private async void ReconnectDelayed(string clientToken) { + if (ws != null) + { + Console.WriteLine("Stopping WebSocket..."); + await ws!.Stop(WebSocketCloseStatus.Empty, "Connection closing."); + } + + ws = null; await Task.Delay(10000); if (!isStopped) Start(clientToken, true); diff --git a/iGotify Notification Assist.csproj b/iGotify Notification Assist.csproj index 13c86e3..389b8a9 100644 --- a/iGotify Notification Assist.csproj +++ b/iGotify Notification Assist.csproj @@ -6,9 +6,9 @@ enable true iGotify_Notification_Assist - 1.5.1.1 - 1.5.1.1 - 1.5.1.1 + 1.5.1.2 + 1.5.1.2 + 1.5.1.2 default