Pointer receivers for phony.Block

This commit is contained in:
Neil Alexander
2019-08-28 12:26:44 +01:00
parent 5d7d84f827
commit 607c906820
4 changed files with 9 additions and 9 deletions

View File

@@ -149,7 +149,7 @@ func (ps *peers) removePeer(port switchPort) {
if port == 0 {
return
} // Can't remove self peer
phony.Block(ps.core.router, func() {
phony.Block(&ps.core.router, func() {
ps.core.switchTable.forgetPeer(port)
})
ps.mutex.Lock()