server: defer cancelling the outbound connection until the tie-breaker

This commit is contained in:
Olaoluwa Osuntokun committed 2018-06-10 23:02:22 -07:00
1 parent 179b25c580
commit 8885c3de8d
2 files changed
+7 -8

No files matched your search

+1 -2
View File
@@ -1332,7 +1332,7 @@ type LightningChannel struct {
cowg sync.WaitGroup
wg sync.WaitGroup
quit chan struct{}
quit chan struct{}
}
// NewLightningChannel creates a new, active payment channel given an
@@ -3184,7 +3184,6 @@ func (lc *LightningChannel) ProcessChanSyncMsg(
// revocation, but also initiate a state transition to re-sync
// them.
if !lc.FullySynced() {
commitSig, htlcSigs, err := lc.SignNextCommitment()
switch {