mirror of
https://github.com/netbirdio/service.git
synced 2026-05-22 17:08:14 -07:00
service: on windows close service handle on status
This commit is contained in:
@@ -296,6 +296,7 @@ func (ws *windowsService) Status() (Status, error) {
|
||||
}
|
||||
return StatusUnknown, err
|
||||
}
|
||||
defer s.Close()
|
||||
|
||||
status, err := s.Query()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user