mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 11:52:54 +00:00 
			
		
		
		
	Use subscribe method from super, instead of using duplicated code
This commit is contained in:
		@@ -26,9 +26,7 @@ class StatefulEventHandler(EventHandlerBase):
 | 
			
		||||
            except StopIteration:
 | 
			
		||||
                self.reset()
 | 
			
		||||
                return
 | 
			
		||||
            if response_anchor not in self.subscriptions:
 | 
			
		||||
                self.subscriptions.add(response_anchor)
 | 
			
		||||
                self.zmq_sub_socket.setsockopt_string(zmq.SUBSCRIBE, response_anchor)
 | 
			
		||||
            self.subscribe(response_anchor)
 | 
			
		||||
            response_data = json.dumps({
 | 
			
		||||
                'anchor': response_anchor,
 | 
			
		||||
                'data': response_data,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user