add TrafficMonitor to the main activity

This commit is contained in:
Max Lv
2015-11-18 14:02:29 +08:00
parent 92e72830bb
commit f0abbb7304
8 changed files with 48 additions and 6 deletions
@@ -420,6 +420,8 @@ class ShadowsocksNatService extends Service with BaseService {
override def startRunner(c: Config) {
TrafficMonitor.reset()
config = c
// register close receiver
@@ -509,6 +511,8 @@ class ShadowsocksNatService extends Service with BaseService {
override def stopRunner() {
TrafficMonitor.reset()
// channge the state
changeState(State.STOPPING)