From 7672e8d60586129e8f4f9c718d1d62f3c9c0b729 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Feb 2019 22:03:15 +0100 Subject: language selection now returns result --- cmd/dolmetschctld/dolmetschctld.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmd/dolmetschctld/dolmetschctld.go') diff --git a/cmd/dolmetschctld/dolmetschctld.go b/cmd/dolmetschctld/dolmetschctld.go index 0f6793b..45536e8 100644 --- a/cmd/dolmetschctld/dolmetschctld.go +++ b/cmd/dolmetschctld/dolmetschctld.go @@ -60,11 +60,15 @@ func main() { defer sm.Shutdown() var telnet *TelnetInterface - if telnet, err = NewTelnetInterface(sm); err != nil { + if telnet, err = NewTelnetInterface("127.0.0.1:1234", sm); err != nil { log.Printf("creating telnet control interface failed: %v", err) os.Exit(1) } - telnet.Run() + log.Printf("telnet interface successfully initialized!") + + if err = telnet.Run(); err != nil { + log.Printf("running telnet interface failed: %v", err) + } log.Printf("exiting.") } -- cgit v1.2.3