Fix abort_sleep missing crash in Blinkenlights UI
This is a regression introduced when renaming signals due to the improved CTRL-C handling. Regression in 6.5.0 Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
		@@ -19,3 +19,5 @@ Changes
 | 
			
		||||
Bug Fixes
 | 
			
		||||
---------
 | 
			
		||||
 | 
			
		||||
* Abort sleep in blinkenlights UI led to crash ('abort_signal' not existing),
 | 
			
		||||
  regression from 6.5.0.
 | 
			
		||||
 
 | 
			
		||||
@@ -157,11 +157,13 @@ class CursesAccountFrame:
 | 
			
		||||
        return tf
 | 
			
		||||
 | 
			
		||||
    def sleeping(self, sleepsecs, remainingsecs):
 | 
			
		||||
        # show how long we are going to sleep and sleep
 | 
			
		||||
        """show how long we are going to sleep and sleep
 | 
			
		||||
 | 
			
		||||
        :returns: Boolean, whether we want to abort the sleep"""
 | 
			
		||||
        self.drawleadstr(remainingsecs)
 | 
			
		||||
        self.ui.exec_locked(self.window.refresh)
 | 
			
		||||
        time.sleep(sleepsecs)
 | 
			
		||||
        return self.account.abort_signal.is_set()
 | 
			
		||||
        return self.account.get_abort_event()
 | 
			
		||||
 | 
			
		||||
    def syncnow(self):
 | 
			
		||||
        """Request that we stop sleeping asap and continue to sync"""
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user