uc_sensor_node_zmq forwarder
[svn42.git] / go / door_daemon_zmq / serial_tty.go
index ea246ca..a5528d5 100644 (file)
@@ -11,6 +11,7 @@ import (
     "log"
 )
 
+
 // ---------- Serial TTY Code -------------
 
 func openTTY(name string) (*os.File, error) {
@@ -29,6 +30,7 @@ func serialWriter(in <- chan string, serial * os.File) {
         serial.WriteString(totty)
         serial.Sync()
     }
+    close(serial)
 }
 
 func serialReader(out chan <- [][]byte, serial * os.File) {