Skip to content
Snippets Groups Projects
Commit eaa93827 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fix teardown

parent 8a38d3b5
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ func (b *BMPServer) RemoveRouter(addr net.IP, port uint16) { ...@@ -122,7 +122,7 @@ func (b *BMPServer) RemoveRouter(addr net.IP, port uint16) {
b.gloablMu.Lock() b.gloablMu.Lock()
defer b.gloablMu.Unlock() defer b.gloablMu.Unlock()
id := fmt.Sprintf("%s:%d", addr.String(), port) id := addr.String()
r := b.routers[id] r := b.routers[id]
r.stop <- struct{}{} r.stop <- struct{}{}
delete(b.routers, id) delete(b.routers, id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment