MCPcopy Create free account
hub / github.com/encodeous/nylon / Cleanup

Method Cleanup

core/nylon.go:312–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310}
311
312func (n *Nylon) Cleanup() error {
313 n.PingBuf.Stop()
314 for _, ph := range n.GetNode(n.LocalCfg.Id).Prefixes {
315 ph.Stop()
316 }
317
318 n.CleanupRouter()
319 n.Trace.Cleanup()
320
321 return n.cleanupWireGuard()
322}

Callers 3

mainLoopMethod · 0.95
genTestPairFunction · 0.45
goroutineLeakCheckFunction · 0.45

Calls 4

CleanupRouterMethod · 0.95
cleanupWireGuardMethod · 0.95
StopMethod · 0.65
GetNodeMethod · 0.45

Tested by 2

genTestPairFunction · 0.36
goroutineLeakCheckFunction · 0.36