mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 18:39:58 +00:00
Remove remote instance from map when disconnecting
This commit is contained in:
@@ -85,7 +85,10 @@ messaging.on("message", (message: Message) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (shouldWatchStatus) {
|
if (shouldWatchStatus) {
|
||||||
|
if (remotes.has(deviceId)) {
|
||||||
remotes.get(deviceId)?.disconnect();
|
remotes.get(deviceId)?.disconnect();
|
||||||
|
remotes.delete(deviceId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user