misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-02-19 14:36:24 +01:00
commit d95373bfa8
6 changed files with 22 additions and 21 deletions

View file

@ -378,9 +378,9 @@ func (s *Session) Start() error {
s.Firewall = firewall.Make(s.Interface)
s.WiFi = network.NewWiFi(s.Interface, func(st *network.WiFiStation) {
s.WiFi = network.NewWiFi(s.Interface, func(st *network.Station) {
s.Events.Add("wifi.station.new", st)
}, func(st *network.WiFiStation) {
}, func(st *network.Station) {
s.Events.Add("wifi.station.lost", st)
})