Merge pull request #4805 from tonistiigi/socket-eof-return

socket: return from loop after EOF
This commit is contained in:
Sebastiaan van Stijn 2024-01-20 13:44:45 +01:00 committed by GitHub
commit f18a476b6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ func ConnectAndWait(cb func()) {
_, err := conn.Read(b) _, err := conn.Read(b)
if errors.Is(err, io.EOF) { if errors.Is(err, io.EOF) {
cb() cb()
return
} }
} }
}() }()