We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5f55c0 commit 60a13abCopy full SHA for 60a13ab
src/CloudlogHelper/Services/PluginService.cs
@@ -111,6 +111,22 @@ private void StartHeartbeat(CancellationToken token)
111
private void StopAll()
112
{
113
if (_disposed) return;
114
+
115
+ _ = Task.Run(async () =>
116
+ {
117
+ try
118
119
+ await SendMessage(new PipeConnectionClosed()
120
121
+ Timestamp = Timestamp.FromDateTime(DateTime.UtcNow)
122
+ }, CancellationToken.None);
123
+ }
124
+ catch (Exception e)
125
126
+ //ignored
127
128
+ });
129
130
_disposed = true;
131
132
_heartbeatCts?.Cancel();
0 commit comments