mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add a close overload for jsonrpcpluginv2
This commit is contained in:
parent
106760ca66
commit
59f3eeecf2
1 changed files with 2 additions and 2 deletions
|
|
@ -139,11 +139,11 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual ValueTask DisposeAsync()
|
public virtual async ValueTask DisposeAsync()
|
||||||
{
|
{
|
||||||
|
await RPC.InvokeAsync("close");
|
||||||
RPC?.Dispose();
|
RPC?.Dispose();
|
||||||
ErrorStream?.Dispose();
|
ErrorStream?.Dispose();
|
||||||
return ValueTask.CompletedTask;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue