wip: done!, kind of!

This commit is contained in:
Alexandre Beaulieu 2019-04-16 15:12:19 -04:00
commit 1e7df0ae28
No known key found for this signature in database
GPG key ID: 8B02EA7AE3FC7081

View file

@ -225,7 +225,9 @@ func (mod *RdpProxy) Start() error {
}
func (mod *RdpProxy) Stop() error {
mod.Info("Stopping!")
for _, cmd := range mod.active {
cmd.Process.Kill() // FIXME: More graceful way to shutdown?
}
return mod.SetRunning(false, func() {
mod.queue.StopLoop()
mod.configureFirewall(false)