mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Exit time travel mode as a part of the app shutdown().
This commit is contained in:
@@ -798,10 +798,16 @@ export function changeInstance() {
|
||||
}
|
||||
|
||||
export function shutdown() {
|
||||
stopPolling();
|
||||
teardownWebsockets();
|
||||
return {
|
||||
type: ActionTypes.SHUTDOWN
|
||||
return (dispatch) => {
|
||||
stopPolling();
|
||||
teardownWebsockets();
|
||||
// Exit the time travel mode before unmounting the app.
|
||||
dispatch({
|
||||
type: ActionTypes.RESUME_TIME
|
||||
});
|
||||
dispatch({
|
||||
type: ActionTypes.SHUTDOWN
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user