fix race condition in windows agent update amidaware/tacticalrmm#1250
This commit is contained in:
parent
eddafb873b
commit
e11c38dd49
2 changed files with 2 additions and 1 deletions
|
|
@ -479,6 +479,7 @@ func (a *Agent) RunRPC() {
|
|||
atomic.StoreUint32(&agentUpdateLocker, 0)
|
||||
nc.Flush()
|
||||
nc.Close()
|
||||
a.ControlService(winSvcName, "stop")
|
||||
os.Exit(0)
|
||||
}
|
||||
}(payload)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue