This is an attempt to fix a problem where sources would become stuck on master -> slave state transitions.