summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/statemachine.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r--cmd/dolmetschctld/statemachine.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go
index 7082460..9ae5ff3 100644
--- a/cmd/dolmetschctld/statemachine.go
+++ b/cmd/dolmetschctld/statemachine.go
@@ -178,6 +178,9 @@ func (sm *StateMachine) initMixer() {
// the "current language" is what is currently spoken on stage
func (sm *StateMachine) setLanguage(l Language) error {
+ if l == "none" {
+ l = ""
+ }
if l != "" {
if _, exists := sm.languages[l]; !exists {
return fmt.Errorf("language '%s' does not exist", l)