mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Fix useEffect infinite re-render (#245)
This commit is contained in:
1 parent
b257f5bc73
commit
aa185224e7
7 files changed
+11
-38
No files matched your search
@@ -25,7 +25,11 @@ if (!config.general.enableMultiChar) {
|
||||
on('playerDropped', () => {
|
||||
const src = getSource();
|
||||
// Get identifier for player to remove
|
||||
PlayerService.handleUnloadPlayerEvent(src, true);
|
||||
try {
|
||||
PlayerService.handleUnloadPlayerEvent(src, true);
|
||||
} catch (e) {
|
||||
playerLogger.debug(`${src} failed to unload, likely was never loaded in the first place.`)
|
||||
}
|
||||
});
|
||||
|
||||
// Can use this to debug the player table if needed. Disabled by default
|
||||
|
||||
Reference in new issue
Block a user