mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 20:07:07 +02:00
Fix away.js not unsubscribing on shutdown
This commit is contained in:
parent
a801832a55
commit
1782f97dbd
1 changed files with 1 additions and 0 deletions
|
@ -344,6 +344,7 @@ Script.scriptEnding.connect(function () {
|
|||
Controller.mousePressEvent.disconnect(goActive);
|
||||
Controller.keyPressEvent.disconnect(maybeGoActive);
|
||||
Messages.messageReceived.disconnect(handleMessage);
|
||||
Messages.unsubscribe(CHANNEL_AWAY_ENABLE);
|
||||
});
|
||||
|
||||
if (HMD.active && !HMD.mounted) {
|
||||
|
|
Loading…
Reference in a new issue