cmd/bootnode: defer udp connection close (#27787)
This commit is contained in:
parent
817553cc28
commit
4e9775668e
@ -108,6 +108,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Fatalf("-ListenUDP: %v", err)
|
utils.Fatalf("-ListenUDP: %v", err)
|
||||||
}
|
}
|
||||||
|
defer conn.Close()
|
||||||
|
|
||||||
db, _ := enode.OpenDB("")
|
db, _ := enode.OpenDB("")
|
||||||
ln := enode.NewLocalNode(db, nodeKey)
|
ln := enode.NewLocalNode(db, nodeKey)
|
||||||
|
Loading…
Reference in New Issue
Block a user