diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 4200090..287b2a2 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -68,10 +68,7 @@ class Proxy(DatagramProtocol): _peer_id = self.connTrack[port] elif _command == MSTN: _peer_id = data[6:10] - try: - self.peerTrack[_peer_id]['timer'].cancel() - except KeyError: - pass + self.peerTrack[_peer_id]['timer'].cancel() self.reaper(_peer_id) return elif _command == MSTP: