context cleanup and subscribe, but still heavily broken
[svn42.git] / go / door_daemon_zmq / zeromq.go
index 8f20ec4..a4d8d68 100644 (file)
@@ -9,9 +9,10 @@ import (
 
 // ---------- ZeroMQ Code -------------
 
-func ZmqsInit(cmd_port, pub_port string)  (cmd_chans, pub_chans *zmq.Channels) {
+func ZmqsInit(cmd_port, pub_port string)  (ctx *zmq.Context, cmd_chans, pub_chans *zmq.Channels) {
 
-    ctx, err := zmq.NewContext()
+    var err error
+    ctx, err = zmq.NewContext()
     if err != nil {
         panic(err)
     }