Commit 0d2663c9 authored by Mygod's avatar Mygod

Remove unnecessary resets

parent 9adf1171
...@@ -472,8 +472,6 @@ class Shadowsocks ...@@ -472,8 +472,6 @@ class Shadowsocks
def run() { def run() {
if (state == State.CONNECTED) { if (state == State.CONNECTED) {
TrafficMonitor.update() TrafficMonitor.update()
} else {
TrafficMonitor.reset()
} }
val trafficStat = getString(R.string.stat_summary).formatLocal(Locale.ENGLISH, val trafficStat = getString(R.string.stat_summary).formatLocal(Locale.ENGLISH,
TrafficMonitor.getTxRate, TrafficMonitor.getRxRate, TrafficMonitor.getTxRate, TrafficMonitor.getRxRate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment