fixed some skipping issues after calling ringbuffer's clearbuffer
Merge pull request #79 from rweichler/master

fixed some skipping issues after calling ringbuffer's clearbuffer on a non-main thread