summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-12-06 22:48:41 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-12-06 22:48:41 (GMT)
commit9bf4db94df62dfd9964636d5ec456a5c42db24e6 (patch)
treef29bffc67298db63f2500a71d0ff500bac1922ce
parent3fe4e3f802a262db375468769df65934de64f62f (diff)
incoporated telgo changes
-rw-r--r--src/rhimportd/ctrlTelnet.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlTelnet.go b/src/rhimportd/ctrlTelnet.go
index 7371f7c..ddb0504 100644
--- a/src/rhimportd/ctrlTelnet.go
+++ b/src/rhimportd/ctrlTelnet.go
@@ -356,7 +356,10 @@ func StartControlTelnet(addr string, conf *rhimport.Config, db *rddb.DB, session
cmdlist["run"] = func(c *telgo.Client, args []string) bool { return telnetRun(c, args, conf, db, sessions) }
rhl.Println("telnet-ctrl: listening on", addr)
- s := telgo.NewServer(addr, "rhimportd> ", cmdlist, nil)
+ s, err := telgo.NewServer(addr, "rhimportd> ", cmdlist, nil)
+ if err != nil {
+ fmt.Printf("telnet server returned: %s", err)
+ }
if err := s.Run(); err != nil {
fmt.Printf("telnet server returned: %s", err)
}