Don't loop to check if MoH is needed
Instead, start it once when you join the room, and check each time a peer leaves if it must be re-enabled
Some code refactoring
Reduce duplicate code
Also add some more checks that event received from the signaling channel are sent by owners (ignore them if it's not the case)