Set stop flag in async DO server before messaging the server thread, so it is guaranteed to finish the runloop. Cleanup server thread after the runloop has finished, so it is guaranteed to be executed.
Set stop flag in async DO server before messaging the server thread, so it is guaranteed to finish the runloop. Cleanup server thread after the runloop has finished, so it is guaranteed to be executed.

git-svn-id: cb3fc60f0f557b927b8032d8a94e869b6f9f230b@4209 0fceea05-a30d-0410-8a8b-80ef821fb0a1

jasongrout/skim,camillobruni/skim,jasongrout/skim,camillobruni/skim,camillobruni/skim,camillobruni/skim