Closed ccruden-shookiot closed 3 years ago
This is WRT this issue BTW, since I don't seem to be able to set the linked issue. https://github.com/cyanfish/grpc-dotnet-namedpipes/issues/20
FWIW, this change does seem to have addressed the linked issue. It would be nice to get it into a nuget.org distributed build instead of having to include our custom build in our distribution....
Fixed in https://github.com/cyanfish/grpc-dotnet-namedpipes/commit/51126a7a655e459696a67edb15a493601f7856b6 and published as version 1.4.0.
I wasn't sure about adding a lock {} around the cancellation call, and in any case it seems to protect members that the cancellation call doesn't need to. Definitely need Try... in all cases though depending on whether the cancellation gets called and then completion or vice versa.