Skip to content

Commit

Permalink
Wait for XSplitJS dll handle again
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Jun 27, 2020
1 parent 9776a36 commit 050be41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xsplit-js-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,14 @@ async function loadDll(): Promise<void> {
XJS.Dll.on('access-granted', resolve);
});
}

console.log('waiting for handle');
await handle;
console.log('calling init');
try {
await StreamRemote.DllCall.init(XSplitPluginDllApiVersion);
console.log('init succeeded');
} catch (e) {
console.log(e);
document.getElementById('dllNotFound').classList.remove("uninit");
}
}
Expand Down

0 comments on commit 050be41

Please sign in to comment.