mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Make server_windows.go consistent with server_linux.go
Signed-off-by: Darren Shepherd <darren@rancher.com>
This commit is contained in:
parent
34f44c642f
commit
7433c9c92a
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue