syermakov opened a new pull request #2:
URL: https://github.com/apache/incubator-nlpcraft/pull/2


   This PR should fix NLPCRAFT-49.
   
   **Details:**
   In the current version, an interrupted thread may receive an 
`InterruptedException` and check the `isInterrupted()` flag while the the 
`stopped` is not updated yet.
   This causes problems if the interrupted thread doesn't reset 
`isInterrupted()` flag in `InterruptedException` handling code. 
   
   The fix is to change the order in which flags are updated.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to