mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[NOD-1586] Return routes.Disconnect (#1180)
This commit is contained in:
parent
32a04d1811
commit
05979de705
@ -62,3 +62,8 @@ func (r *Routes) WaitForDisconnect(timeout time.Duration) error {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Disconnect closes the connection behind the routes, thus closing all routes
|
||||
func (r *Routes) Disconnect() {
|
||||
r.netConnection.Disconnect()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user