don't ever re-create a channel if one was previously created

This commit is contained in:
Niko Storni 2020-01-14 04:34:33 +01:00
parent cdee0d0de7
commit 45e87c3007

View file

@ -331,6 +331,8 @@ func (s *Sync) ensureChannelOwnership() error {
}
} else if s.transferState == TransferStateComplete {
return errors.Err("the channel was transferred but appears to have been abandoned!")
} else if s.lbryChannelID != "" {
return errors.Err("the database has a channel recorded (%s) but nothing was found in our control", s.lbryChannelID)
}
channelUsesOldMetadata := false