diff options
Diffstat (limited to 'src/nshd/hackers_git/hackers.go')
-rw-r--r-- | src/nshd/hackers_git/hackers.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go index f84b110..88f27ed 100644 --- a/src/nshd/hackers_git/hackers.go +++ b/src/nshd/hackers_git/hackers.go @@ -24,7 +24,6 @@ type Hackers struct { util.NullBackend cfg Config lock sync.RWMutex - workers sync.WaitGroup users map[int32]user groups map[string]map[string]bool @@ -48,17 +47,14 @@ func NewHackers(config Config) *Hackers { logger.Err("Could not initialize hackers.git: %v", err) return nil } - o.workers.Add(1) go func() { defer lsb.Recover() - defer o.workers.Done() o.worker() }() return &o } func (o *Hackers) Close() { - defer o.workers.Wait() logger.Info("Closing hackers.git session") o.lock.Lock() defer o.lock.Unlock() |