diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-08 20:40:10 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-08 20:40:10 -0600 |
commit | eed575704b9277b71fb85846cb16dfa94549465c (patch) | |
tree | e3fb2dafcd92190b18c7695fb274c39e55a4ef94 /src/nshd/hackers_git | |
parent | bdfdfb549ca887340ceb5e2d0024954dc9c4cee9 (diff) |
I am dumb, fix inotify bindings
Diffstat (limited to 'src/nshd/hackers_git')
-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() |