URI: 
       tfix python 3.6 compat - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit df6dc8fcf2ce7b55849243a6af1baa54ef51855c
   DIR parent ea654ad7404ec510bfbe5c0f7b3354484283f1ec
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Wed, 11 Nov 2020 19:47:37 +0100
       
       fix python 3.6 compat
       
       fix #6725
       
       follow-up #6705
       
       Diffstat:
         M electrum/lnrater.py                 |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/lnrater.py b/electrum/lnrater.py
       t@@ -85,12 +85,16 @@ class LNRater(Logger):
                self._last_progress_percent = 0
        
            def maybe_analyze_graph(self):
       -        asyncio.run(self._maybe_analyze_graph())
       +        loop = asyncio.get_event_loop()
       +        fut = asyncio.run_coroutine_threadsafe(self._maybe_analyze_graph(), loop)
       +        fut.result()
        
            def analyze_graph(self):
                """Forces a graph analysis, e.g., due to external triggers like
                the graph info reaching 50%."""
       -        asyncio.run(self._analyze_graph())
       +        loop = asyncio.get_event_loop()
       +        fut = asyncio.run_coroutine_threadsafe(self._analyze_graph(), loop)
       +        fut.result()
        
            async def _maybe_analyze_graph(self):
                """Analyzes the graph when in early sync stage (>30%) or when caching