[web] set connected to false when DISCONNECTED

This commit is contained in:
Jason 2016-06-22 11:29:21 +08:00
parent 9a7415a58d
commit 57af1d00dd
3 changed files with 153 additions and 159 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,7 @@ export default function reduce(state = defaultState, action) {
return { ...state, connected: false } return { ...state, connected: false }
case DISCONNECTED: case DISCONNECTED:
return { ...state, [SYM_SOCKET]: null } return { ...state, [SYM_SOCKET]: null, connected: false }
default: default:
return state return state