feat: LCEOnline instead of LCELive

This commit is contained in:
neoapps-dev 2026-07-10 16:14:03 +03:00
parent 00e6ec2312
commit dc0354a28f

View file

@ -82,10 +82,12 @@ const LceOnlineView = memo(function LceOnlineView({
const handleStartHosting = async () => {
playPressSound();
try {
await TauriService.startHostRelay(lceOnlineService.accessToken ?? "", 25565);
const token = lceOnlineService.accessToken ?? "";
if (!token) return;
TauriService.startHostRelay(token, 25565).catch(() => {});
setIsHosting(true);
} catch (e: unknown) {
setErrorModal(e instanceof Error ? e.message : "Failed to start relay");
setErrorModal(e instanceof Error ? e.message : "Failed to start hosting");
}
};