diff --git a/app/components/network_indicator/network_indicator.js b/app/components/network_indicator/network_indicator.js index 3d8faf170..bef1d5bdc 100644 --- a/app/components/network_indicator/network_indicator.js +++ b/app/components/network_indicator/network_indicator.js @@ -112,16 +112,11 @@ export default class NetworkIndicator extends PureComponent { componentWillUnmount() { this.mounted = false; - const {closeWebSocket, stopPeriodicStatusUpdates} = this.props.actions; - this.networkListener.removeEventListener(); - AppState.removeEventListener('change', this.handleAppStateChange); - closeWebSocket(); - stopPeriodicStatusUpdates(); - clearTimeout(this.connectionRetryTimeout); + this.connectionRetryTimeout = null; } connect = (displayBar = false) => {