summaryrefslogtreecommitdiff
path: root/src/leap/gui/statuspanel.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-07-22 18:30:25 +0200
committerKali Kaneko <kali@leap.se>2013-07-24 19:55:08 +0200
commit69a0abef027c040b6daee1ba4c22f3d249139e7a (patch)
tree12d2af77b11b60f725fc796b301dc085477bf643 /src/leap/gui/statuspanel.py
parentd56790c4cddab8768e14a83a3c9fcb15bda1dee5 (diff)
try to terminate already running openvpn instance
Diffstat (limited to 'src/leap/gui/statuspanel.py')
-rw-r--r--src/leap/gui/statuspanel.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/gui/statuspanel.py b/src/leap/gui/statuspanel.py
index 04fc6818..ac0f5162 100644
--- a/src/leap/gui/statuspanel.py
+++ b/src/leap/gui/statuspanel.py
@@ -45,6 +45,9 @@ class RateMovingAverage(object):
"""
Initializes an empty array of fixed size
"""
+ self.reset()
+
+ def reset(self):
self._data = [None for i in xrange(self.SAMPLE_SIZE)]
def append(self, x):