From 45e87c30075ffa52c7ff5284f65d732dee770c25 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 14 Jan 2020 04:34:33 +0100 Subject: [PATCH] don't ever re-create a channel if one was previously created --- manager/setup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manager/setup.go b/manager/setup.go index 3813e7b..2420942 100644 --- a/manager/setup.go +++ b/manager/setup.go @@ -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