question: public void waitForDecodingToFinish ( ) { while ( isDecoding ) { try { Thread . sleep ( 100 ) ; } catch ( final InterruptedException e ) { LogWriter . writeLog ( "Exception: " + e . getMessage ( ) ) ; isDecoding = false ; } } }
target:  wait for decoding to finish