dispose other stuff in finally block

This commit is contained in:
Hongtao Zhang 2024-05-27 01:15:00 -05:00
parent 81f234e230
commit b4a33479c6

View file

@ -148,9 +148,11 @@ namespace Flow.Launcher.Core.Plugin
catch (RemoteMethodNotFoundException e)
{
}
RPC?.Dispose();
ErrorStream?.Dispose();
finally
{
RPC?.Dispose();
ErrorStream?.Dispose();
}
}
}
}