URI: 
       tqt main_window: do not unregister on shutdown - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 56853da391e26e7bdabf8d8e35f9d5e2a35aae65
   DIR parent 545182e0a550b9dc7ff77476d3f4b39bcad5b24e
  HTML Author: Janus <ysangkok@gmail.com>
       Date:   Tue, 11 Dec 2018 21:50:27 +0100
       
       qt main_window: do not unregister on shutdown
       
       tthis is handled differently in lightning, see commit
       
       commit 6e355601261a60d143561f15760cc48f9c81d000
       Author: ThomasV <thomasv@electrum.org>
       Date:   Sun Jun 3 10:07:56 2018 +0200
       
           integrate channels_list with existing framework
       
       Diffstat:
         M electrum/gui/qt/main_window.py      |       2 --
         M electrum/lnrouter.py                |       2 +-
       
       2 files changed, 1 insertion(+), 3 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -3360,8 +3360,6 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger):
                self.wallet.thread.stop()
                if self.network:
                    self.network.unregister_callback(self.on_network)
       -            self.network.unregister_callback(self.on_quotes)
       -            self.network.unregister_callback(self.on_history)
                self.config.set_key("is_maximized", self.isMaximized())
                if not self.isMaximized():
                    g = self.geometry()
   DIR diff --git a/electrum/lnrouter.py b/electrum/lnrouter.py
       t@@ -354,7 +354,7 @@ class ChannelDB(JsonDB):
        
            def capacity(self):
                # capacity of the network
       -        return sum(c.capacity_sat for c in self._id_to_channel_info.values())
       +        return sum(c.capacity_sat for c in self._id_to_channel_info.values() if c.capacity_sat is not None)
        
            def get_channel_info(self, channel_id: bytes) -> Optional[ChannelInfo]:
                return self._id_to_channel_info.get(channel_id, None)