service: on windows close service handle on status

This commit is contained in:
Daniel Theophanes
2020-06-07 11:06:18 -07:00
parent 5544762d3e
commit 095e475882
+1
View File
@@ -296,6 +296,7 @@ func (ws *windowsService) Status() (Status, error) {
}
return StatusUnknown, err
}
defer s.Close()
status, err := s.Query()
if err != nil {