server: Fix bug disconnecting peer on filteradd

This commit is contained in:
Steven Roose 2018-04-21 20:48:51 +02:00
parent 675abc5df3
commit 0734b55363

View file

@ -799,7 +799,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()