add TrafficMonitor to the main activity
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user