Properly close the socket watcher
[govpp.git] / adapter / statsclient / statsclient.go
index 8c5904d..6231f69 100644 (file)
@@ -152,6 +152,7 @@ func (sc *StatsClient) Disconnect() error {
                return fmt.Errorf("unmapping shared memory failed: %v", err)
        }
        sc.headerData = nil
+       sc.done <- struct{}{}
 
        Log.Debugf("successfully unmapped shared memory")
        return nil