add missing cancellation

This commit is contained in:
ppc
2024-08-13 22:21:21 +01:00
parent 55841a736e
commit 6b831512a8
+1 -1
View File
@@ -98,7 +98,7 @@ export default function ServerCardIn({route, navigation}) {
setServerRefreshing(false);
});
// pull abort on unmount
setTimeout(() => abortController.abort(), 5000);
return () => abortController.abort();
}, [serverId, serverReloadCounter, realm]);