Revert "Remove waiting loop"
Revert "Remove waiting loop"

This reverts commit cca0fa29c627297b2becf2b3d7b720c895c431a9.

TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera