Code Review
/
govpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
b9aa34d
)
Properly close the socket watcher
90/35690/3
author
Vladimir Lavor
<vlavor@cisco.com>
Thu, 17 Mar 2022 08:33:38 +0000
(09:33 +0100)
committer
Ondrej Fabry
<ofabry@cisco.com>
Thu, 17 Mar 2022 08:56:45 +0000
(08:56 +0000)
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
Change-Id: I40665a0413f273e52bcaeaabacdf1bd55afcfd67
adapter/statsclient/statsclient.go
patch
|
blob
|
history
diff --git
a/adapter/statsclient/statsclient.go
b/adapter/statsclient/statsclient.go
index
8c5904d
..
6231f69
100644
(file)
--- 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