Skip to content

Commit 0a00f39

Browse files
committed
fix: add delay between events
1 parent fc822c2 commit 0a00f39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/lib/ipcEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export function registerIpcEvents() {
281281
PhoneIslandController.instance.window.emit(event, data)
282282
})
283283
pendingPhoneIslandEvents = []
284-
}, 1000)
284+
}, 2500)
285285
})
286286

287287
ipcMain.on(IPC_EVENTS.CHANGE_PREFERRED_DEVICES, (_, devices) => {

src/renderer/src/hooks/usePhoneIslandEventListeners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export const usePhoneIslandEventListener = () => {
238238
setTimeout(() => {
239239
Log.info("phone-island-webrtc-registered")
240240
window.electron.send(IPC_EVENTS.PHONE_ISLAND_READY)
241-
}, 2000);
241+
}, 2500);
242242
}),
243243
...eventHandler(PHONE_ISLAND_EVENTS["phone-island-all-alerts-removed"]),
244244
...eventHandler(PHONE_ISLAND_EVENTS["phone-island-fullscreen-entered"], () => {

0 commit comments

Comments
 (0)