mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
fix nil pointer deref if searches fail, block dial until a search exceeds or a timeout passes (todo: replace timer with context)
This commit is contained in:
parent
ca1f2bb0a2
commit
818eca90db
4 changed files with 33 additions and 12 deletions
|
@ -119,7 +119,7 @@ func (r *router) mainLoop() {
|
|||
case info := <-r.core.dht.peers:
|
||||
r.core.dht.insertPeer(info)
|
||||
case <-r.reset:
|
||||
r.core.sessions.resetInits()
|
||||
r.core.sessions.reset()
|
||||
r.core.dht.reset()
|
||||
case <-ticker.C:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue