server: Fix bug disconnecting peer on filteradd
This commit is contained in:
parent
675abc5df3
commit
0734b55363
1 changed files with 1 additions and 1 deletions
|
@ -799,7 +799,7 @@ func (sp *serverPeer) OnFilterAdd(_ *peer.Peer, msg *wire.MsgFilterAdd) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if sp.filter.IsLoaded() {
|
if !sp.filter.IsLoaded() {
|
||||||
peerLog.Debugf("%s sent a filteradd request with no filter "+
|
peerLog.Debugf("%s sent a filteradd request with no filter "+
|
||||||
"loaded -- disconnecting", sp)
|
"loaded -- disconnecting", sp)
|
||||||
sp.Disconnect()
|
sp.Disconnect()
|
||||||
|
|
Loading…
Reference in a new issue