We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b497c69 + b4a3347 commit aad9fdcCopy full SHA for aad9fdc
Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs
@@ -139,11 +139,20 @@ public virtual Task ReloadDataAsync()
139
return Task.CompletedTask;
140
}
141
142
- public virtual ValueTask DisposeAsync()
+ public virtual async ValueTask DisposeAsync()
143
{
144
- RPC?.Dispose();
145
- ErrorStream?.Dispose();
146
- return ValueTask.CompletedTask;
+ try
+ {
+ await RPC.InvokeAsync("close");
147
+ }
148
+ catch (RemoteMethodNotFoundException e)
149
150
151
+ finally
152
153
+ RPC?.Dispose();
154
+ ErrorStream?.Dispose();
155
156
157
158
0 commit comments