URI: 
       tlnpeer: (fix) force_close_channel was not awaited in some cases - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 216d9e3c4db091ccccb0919b67022c65a9e55962
   DIR parent d5b27e5be1711aa6a0c883929d92e11a344153de
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Thu, 21 Nov 2019 16:37:43 +0100
       
       lnpeer: (fix) force_close_channel was not awaited in some cases
       
       Diffstat:
         M electrum/lnpeer.py                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
       t@@ -868,7 +868,7 @@ class Peer(Logger):
                    return
                elif should_close_we_are_ahead:
                    self.logger.warning(f"channel_reestablish: we are ahead of remote! trying to force-close.")
       -            self.lnworker.force_close_channel(chan_id)
       +            await self.lnworker.force_close_channel(chan_id)
                    return
        
                # note: chan.short_channel_id being set implies the funding txn is already at sufficient depth
       t@@ -1218,7 +1218,7 @@ class Peer(Logger):
                if chan.get_state() != "OPEN":
                    raise RemoteMisbehaving(f"received update_add_htlc while chan.get_state() != OPEN. state was {chan.get_state()}")
                if cltv_expiry >= 500_000_000:
       -            self.lnworker.force_close_channel(channel_id)
       +            asyncio.ensure_future(self.lnworker.force_close_channel(channel_id))
                    raise RemoteMisbehaving(f"received update_add_htlc with cltv_expiry >= 500_000_000. value was {cltv_expiry}")
                # add htlc
                htlc = UpdateAddHtlc(amount_msat=amount_msat_htlc,