Skip to content

Commit 59f3eee

Browse files
committed
add a close overload for jsonrpcpluginv2
1 parent 106760c commit 59f3eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ public virtual Task ReloadDataAsync()
139139
return Task.CompletedTask;
140140
}
141141

142-
public virtual ValueTask DisposeAsync()
142+
public virtual async ValueTask DisposeAsync()
143143
{
144+
await RPC.InvokeAsync("close");
144145
RPC?.Dispose();
145146
ErrorStream?.Dispose();
146-
return ValueTask.CompletedTask;
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)