Heh,
Ok, I found a solution that works for me and I had fun coming up with.
When my data sending thread gets the order to stop it emits one last bit of data (using the same signal and hence the same queue). This data is basically nonsense.
My receiver now checks to see if the data it got was nonsense. If it was, then it just resets its state and whatever comes next is nicely the new data after the data sending thread got restarted.
That was fun to figure out!
-K
Bookmarks