This commit is contained in:
影舞者
2022-05-12 17:56:32 +08:00
parent 4915539fb3
commit 11fb239c61
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -97,11 +97,11 @@ func AddScan(scantype string, info common.HostInfo, ch chan struct{}, wg *sync.W
common.Num += 1
Mutex.Unlock()
ScanFunc(PluginList, scantype, &info)
wg.Done()
Mutex.Lock()
common.End += 1
Mutex.Unlock()
<-ch
wg.Done()
}()
ch <- struct{}{}
}