Opened 4 years ago

Closed 4 years ago

#21774 closed defect (fixed)

Fix CONN_BW event listening

Reported by: timonh Owned by: atagar
Priority: Low Milestone:
Component: Archived/Stem Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


The ConnectionBandwidthEvent overwrites the type field of the Event class.
Therefore the method _handle_event in erroneously checks if the connection type (if it is a ConnectionBandwidthEvent) is contained in the event listeners list.
All in all you can't receive CONN_BW events in stem.
I fixed it by renaming the type of the ConnectionBandwidthEvent to conn_type.

My changes can be found here:

Child Tickets

Change History (2)

comment:1 Changed 4 years ago by atagar

Great, thanks timonh for the pull request! I'm traveling until the 26th during which I can't merge anything, but change looks great and I'll pull it in when I get back.

Thanks for the patch!

comment:2 Changed 4 years ago by atagar

Resolution: fixed
Status: newclosed

Sorry about the long delay! Fix merged.

Note: See TracTickets for help on using tickets.