janelia-flyem / gala

Automatic segmentation of electron microscopy volumes
BSD 3-Clause "New" or "Revised" License
75 stars 29 forks source link

Fix test_serve to use two threads, one for server and one for proofreader #76

Open jni opened 8 years ago

jni commented 8 years ago

Currently, if the server thread crashes, the proofreader thread sits there waiting for a response. This is fixable by starting the proofreader in its own thread and then joining the threads, which would crash if either thread crashes. See e.g. this SO page.