error in channel ownership check

This commit is contained in:
Alex Grintsvayg 2017-10-11 11:25:43 -04:00
parent b60e93043b
commit 8035d5a3cd

View file

@ -166,7 +166,7 @@ func (s *Sync) ensureChannelOwnership() error {
return err return err
} }
channelNotFound := (*resolveResp)[s.LbryChannelName].Error == nil || strings.Contains(*((*resolveResp)[s.LbryChannelName].Error), "cannot be resolved") channelNotFound := (*resolveResp)[s.LbryChannelName].Error != nil && strings.Contains(*((*resolveResp)[s.LbryChannelName].Error), "cannot be resolved")
if !channelNotFound { if !channelNotFound {
return errors.New("Channel exists and we don't own it. Pick another channel.") return errors.New("Channel exists and we don't own it. Pick another channel.")