mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-30 18:57:54 +03:00
add missing cancellation
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user