Просмотр исходного кода

bin/dnet: Added missing event for connected state transition.

anon_panther 1 год назад
Родитель
Сommit
e2393c97a2
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      bin/dnet/src/model.py

+ 2 - 0
bin/dnet/src/model.py

@@ -137,6 +137,8 @@ class Model:
             case 'outbound_slot_connected':
                 slot = info['slot']
                 addr = info['addr']
+                event = self.nodes[name]['event']
+                event[(f'{name}', f'{slot}')] = [f'connected: addr={addr}', 0]
                 id = info['channel_id']
                 self.nodes[name]['outbound'][f'{slot}'] = [addr, id]
                 logging.debug(f'{current_time}  slot {slot}: connected    addr={addr}')