From 7433c9c92a9d2b53331f729249ddbbfa70cb76de Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 1 Apr 2015 17:26:22 -0700 Subject: [PATCH] Make server_windows.go consistent with server_linux.go Signed-off-by: Darren Shepherd --- api/server/server_windows.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/api/server/server_windows.go b/api/server/server_windows.go index e7feb55a21..ad7b3c48ad 100644 --- a/api/server/server_windows.go +++ b/api/server/server_windows.go @@ -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 }