Skip to content

Commit

Permalink
fix: Multiple Mixers intial state, if default.shot was empty, a crash…
Browse files Browse the repository at this point in the history
… could occour.
  • Loading branch information
olzzon authored and olzzon committed Nov 13, 2020
1 parent c518510 commit ca94894
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/utils/mixerConnections/OscMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export class OscMixerConnection {

this.mixerProtocol = mixerProtocol
this.mixerIndex = mixerIndex
//If default store has been recreated multiple mixers are not created
if (!state.channels[0].chConnection[this.mixerIndex]) {
state.channels[0].chConnection[this.mixerIndex] = { channel: [] }
}

this.cmdChannelIndex = this.mixerProtocol.channelTypes[0].fromMixer.CHANNEL_OUT_GAIN[0].mixerMessage
.split('/')
Expand Down

0 comments on commit ca94894

Please sign in to comment.