Commit 61e31086 authored by Sunil Kumar's avatar Sunil Kumar

reader threads synchronized

parent 11749b1d
......@@ -901,6 +901,19 @@ final class Connection
}
socket = null;
}
// wait until reader threads stops completely
try {
reader.join();
reader=null;
}
catch(InterruptedException iex) {
;
}
catch(NullPointerException npe) {
;
}
freeWriteSemaphore( semId);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment