f908fb67ce
We attempted to delete the file with service protocol information immediately after retrieving the URI. However, the spawned process could potentially still have that file open which will cause the deletion to fail on Windows. Fix is to wait until the process closes before deleting to ensure it's not holding onto the file. Change-Id: I85f715ad0570d121365373d498e539a667bd9d02 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/124165 Reviewed-by: Alexander Markov <alexmarkov@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>