mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
get code running in the netns test again, remove unnecessary allocations that were found in profiling
This commit is contained in:
parent
f747f259b3
commit
41f49faaa0
3 changed files with 19 additions and 15 deletions
|
@ -388,7 +388,11 @@ func (a *admin) start() error {
|
|||
|
||||
// cleans up when stopping
|
||||
func (a *admin) close() error {
|
||||
return a.listener.Close()
|
||||
if a.listener != nil {
|
||||
return a.listener.Close()
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// listen is run by start and manages API connections.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue