This commit is contained in:
Max Lv
2014-11-30 10:18:27 +08:00
parent 4b37d88f74
commit 97dd8fa15e
8 changed files with 45 additions and 16 deletions
@@ -81,11 +81,15 @@ trait BaseService {
}
override def stop() {
stopRunner()
if (state != State.CONNECTING && state != State.STOPPING) {
stopRunner()
}
}
override def start(config: Config) {
startRunner(config)
if (state != State.CONNECTING && state != State.STOPPING) {
startRunner(config)
}
}
}