This commit is contained in:
evilsocket 2018-01-16 10:32:09 +01:00
commit 9363649bce
2 changed files with 10 additions and 0 deletions

View file

@ -183,7 +183,9 @@ func (p ProtoPairList) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
func (d *Discovery) Show() error {
d.Session.Targets.Lock()
d.Session.Queue.Lock()
defer d.Session.Targets.Unlock()
defer d.Session.Queue.Unlock()
iface := d.Session.Interface
gw := d.Session.Gateway