summaryrefslogtreecommitdiff
path: root/bitmask/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'bitmask/main.go')
-rw-r--r--bitmask/main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitmask/main.go b/bitmask/main.go
index a6452ca..b101367 100644
--- a/bitmask/main.go
+++ b/bitmask/main.go
@@ -3,6 +3,7 @@ package bitmask
import (
"encoding/json"
"errors"
+ "log"
"github.com/pebbe/zmq4"
)
@@ -43,6 +44,10 @@ func (b *Bitmask) GetStatusCh() chan string {
// Close the connection to bitmask
func (b *Bitmask) Close() {
+ _, err := b.send("core", "stop")
+ if err != nil {
+ log.Printf("Got an error stopping bitmaskd: %v", err)
+ }
b.coresoc.Close()
}