Correct unsynchronized reset
Correct unsynchronized reset

The next packet shared pointer must be cleared outside of the lock in the same way as the collection of AutoFilters.  Store it in a local variable, nullify the member under lock, and destroy on scope exit.

Additionally, the stop check must occur under lock in order to guard against an unsynchronized state change.

leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring,leapmotion/autowiring,codemercenary/autowiring,codemercenary/autowiring,codemercenary/autowiring,leapmotion/autowiring,codemercenary/autowiring,leapmotion/autowiring