Skip to content

Commit b4a3347

Browse files
committed
dispose other stuff in finally block
1 parent 81f234e commit b4a3347

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,11 @@ public virtual async ValueTask DisposeAsync()
148148
catch (RemoteMethodNotFoundException e)
149149
{
150150
}
151-
152-
RPC?.Dispose();
153-
ErrorStream?.Dispose();
151+
finally
152+
{
153+
RPC?.Dispose();
154+
ErrorStream?.Dispose();
155+
}
154156
}
155157
}
156158
}

0 commit comments

Comments
 (0)