Changeset 7783


Ignore:
Timestamp:
Jul 20, 2018, 9:43:45 AM (12 months ago)
Author:
hectorgh
Message:

seems there could be a thread checking clients that are no longer in the list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d/trunk/fuentes/install-files/usr/share/n4d/python-plugins/VariablesManager.py

    r7519 r7783  
    227227                        self.variables_clients[mac]["missed_pings"]=0
    228228                except:
    229                         self.variables_clients[mac]["missed_pings"]+=1
    230                         if self.variables_clients[mac]["missed_pings"] >=max_pings:
    231                                 print "[VariablesManager] Removing client %s:%s after %s missed pings."%(mac,ip,max_pings)
    232                                 self.variables_clients.pop(mac)
     229                        if mac in self.variables_clients:
     230                                self.variables_clients[mac]["missed_pings"]+=1
     231                                if self.variables_clients[mac]["missed_pings"] >=max_pings:
     232                                        print "[VariablesManager] Removing client %s:%s after %s missed pings."%(mac,ip,max_pings)
     233                                        self.variables_clients.pop(mac)
    233234               
    234235        #def check_single_client
Note: See TracChangeset for help on using the changeset viewer.