mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Make server_windows.go consistent with server_linux.go
Signed-off-by: Darren Shepherd <darren@rancher.com> Upstream-commit: 7433c9c92a9d2b53331f729249ddbbfa70cb76de Component: engine
This commit is contained in:
@@ -39,10 +39,12 @@ func NewServer(proto, addr string, job *engine.Job) (Server, error) {
|
||||
}
|
||||
|
||||
// Called through eng.Job("acceptconnections")
|
||||
func AcceptConnections(job *engine.Job) engine.Status {
|
||||
func AcceptConnections(job *engine.Job) error {
|
||||
// close the lock so the listeners start accepting connections
|
||||
if activationLock != nil {
|
||||
select {
|
||||
case <-activationLock:
|
||||
default:
|
||||
close(activationLock)
|
||||
}
|
||||
return engine.StatusOK
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user