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
@@ -101,7 +101,8 @@ object State {
val INIT = 0
val CONNECTING = 1
val CONNECTED = 2
val STOPPED = 3
val STOPPING = 3
val STOPPED = 4
def isAvailable(state: Int): Boolean = state != CONNECTED && state != CONNECTING
}