-
Julien Muchembled authored
This fixes the following error: TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' Traceback (most recent call last): File "/usr/sbin/re6stnet", line 438, in main tunnel_manager.handleTunnelEvent(read_pipe.readline()) File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 389, in handleTunnelEvent m(*args) File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 412, in _ovpn_route_up self._connection_dict[prefix].connected() File "/usr/lib/python2.7/dist-packages/re6st/tunnel.py", line 76, in connected i = self._retry - 1 What happened is probably that a route_up notification was received just before killing/recreating the connection for the same node, and then process twice the same OpenVPN notification: in this case, the first was for a previous connection and should have been ignored.
d7d7b425