File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
using System . Threading ;
6
6
using System . Threading . Tasks ;
7
7
using Flow . Launcher . Core . Plugin . JsonRPCV2Models ;
8
+ using Flow . Launcher . Infrastructure . Logger ;
8
9
using Flow . Launcher . Plugin ;
9
10
using Microsoft . VisualStudio . Threading ;
10
11
using StreamJsonRpc ;
@@ -141,7 +142,20 @@ public virtual Task ReloadDataAsync()
141
142
142
143
public virtual async ValueTask DisposeAsync ( )
143
144
{
144
- await RPC . InvokeAsync ( "close" ) ;
145
+ try
146
+ {
147
+ await RPC . InvokeAsync ( "close" ) ;
148
+ }
149
+ catch ( RemoteMethodNotFoundException e )
150
+ {
151
+ }
152
+ catch ( Exception e )
153
+ {
154
+ Log . Exception (
155
+ $ "Exception when calling close method for plugin <{ Context . CurrentPluginMetadata . Name } >",
156
+ e ) ;
157
+ }
158
+
145
159
RPC ? . Dispose ( ) ;
146
160
ErrorStream ? . Dispose ( ) ;
147
161
}
You can’t perform that action at this time.
0 commit comments