mirror of
https://github.com/moby/moby.git
synced 2026-08-12 22:16:46 +00:00
The Synchronize method on the integration-test plugin closed p.synchronized inside a select/default block that is not safe under concurrent invocation: two goroutines can both observe the channel as still open and panic on the second close. Use sync.Once so the channel is closed exactly once. Signed-off-by: Takumi Akasaka <takumiakasaka1231@gmail.com>