caffeinetv / libcaffeine

A library for broadcasting to Caffeine.tv
https://www.caffeine.tv
GNU General Public License v2.0
16 stars 5 forks source link

Address several possible race conditions. #80

Closed trilorez closed 5 years ago

trilorez commented 5 years ago

Use broadcast transition state for state transitions that depend on a previous state. When failing to transition to live set the stage to not live. Only end a broadcast from the failed callback when it matches the instance's current broadcast. Stop a broadcast synchronously to prevent weird issues from starting a broadcast when another is stopping.


This change is Reviewable