From e3b68579caea643c6eb36508bc1ef63fc7572f1f Mon Sep 17 00:00:00 2001 From: ricky Date: Mon, 16 Mar 2020 19:33:43 -0400 Subject: [PATCH] Clear sync timeout on unmount (#8199) --- ui/app/pages/mobile-sync/mobile-sync.component.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/app/pages/mobile-sync/mobile-sync.component.js b/ui/app/pages/mobile-sync/mobile-sync.component.js index 92863d93c..821daeb05 100644 --- a/ui/app/pages/mobile-sync/mobile-sync.component.js +++ b/ui/app/pages/mobile-sync/mobile-sync.component.js @@ -226,6 +226,7 @@ export default class MobileSyncPage extends Component { componentWillUnmount () { + this.handle && clearTimeout(this.handle) this.disconnectWebsockets() }