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