mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 19:08:44 +00:00
[web] set connected to false when DISCONNECTED
This commit is contained in:
parent
9a7415a58d
commit
57af1d00dd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user