error in channel ownership check

This commit is contained in:
Alex Grintsvayg 2017-10-11 11:25:43 -04:00
parent be63f05edc
commit f5cba7e913
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

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.")