diff options
author | 2022-03-17 09:33:38 +0100 | |
---|---|---|
committer | 2022-03-17 08:56:45 +0000 | |
commit | 81412d5120d44fdce66c28a53c00dd589cb73d07 (patch) | |
tree | 833e90609285eb022d795a83cc098aa9be347b81 /adapter/statsclient | |
parent | b9aa34d5f77ac5969ad273bfd187ce5f9594b25e (diff) |
Properly close the socket watcher
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Change-Id: I40665a0413f273e52bcaeaabacdf1bd55afcfd67
Diffstat (limited to 'adapter/statsclient')
-rw-r--r-- | adapter/statsclient/statsclient.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/adapter/statsclient/statsclient.go b/adapter/statsclient/statsclient.go index 8c5904d..6231f69 100644 --- a/adapter/statsclient/statsclient.go +++ b/adapter/statsclient/statsclient.go @@ -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 |