Skip to content

Commit

Permalink
fix: X32 - mixer was offline when receiving data for a channel with a…
Browse files Browse the repository at this point in the history
… higher assigned fader than total amount of faders
  • Loading branch information
olzzon authored and olzzon committed Jun 8, 2020
1 parent 252face commit 0a38821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions server/reducers/fadersReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ export const faders = (
fader: [...state[0].fader],
},
]
if (action.channel > nextState[0].fader.length) {
return nextState
}

switch (action.type) {
case SET_VU_LEVEL: //channel: level:
Expand Down
2 changes: 0 additions & 2 deletions server/utils/mixerConnections/OscMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,8 @@ export class OscMixerConnection {
}
})
.on('error', (error: any) => {
this.mixerOnline(false)
global.mainThreadHandler.updateFullClientStore()
logger.error('Error : ' + String(error), {})
logger.info('Lost OSC connection', {})
})
.on('disconnect', () => {
this.mixerOnline(false)
Expand Down

0 comments on commit 0a38821

Please sign in to comment.