File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -475,18 +475,13 @@ def get_or_create_tally(self, index_: int) -> Tally:
475
475
return self .add_tally (index_ )
476
476
477
477
def _add_tally_obj (self , tally : Tally ):
478
+ assert not tally .is_broadcast
478
479
self .tallies [tally .index ] = tally
479
- if tally .is_broadcast :
480
- tally .bind (
481
- on_update = self ._on_broadcast_tally_updated ,
482
- on_control = self ._on_broadcast_tally_updated ,
483
- )
484
- else :
485
- tally .bind (
486
- on_update = self ._on_tally_updated ,
487
- on_control = self ._on_tally_control ,
488
- )
489
- self .emit ('on_tally_added' , tally )
480
+ tally .bind (
481
+ on_update = self ._on_tally_updated ,
482
+ on_control = self ._on_tally_control ,
483
+ )
484
+ self .emit ('on_tally_added' , tally )
490
485
491
486
def update_from_message (self , msg : Message ):
492
487
"""Handle an incoming :class:`~.Message`
You can’t perform that action at this time.
0 commit comments