mirror of https://github.com/sbt/sbt.git
Made to ForkMain's write method synchronized, to ensure the output stream won't corrupt when test framework implementation uses multi-threads to write event back to sbt.
This commit is contained in:
parent
b83d378cd0
commit
b2b9fb132a
|
|
@ -157,7 +157,7 @@ public class ForkMain {
|
|||
class RunAborted extends RuntimeException {
|
||||
RunAborted(Exception e) { super(e); }
|
||||
}
|
||||
void write(ObjectOutputStream os, Object obj) {
|
||||
synchronized void write(ObjectOutputStream os, Object obj) {
|
||||
try {
|
||||
os.writeObject(obj);
|
||||
os.flush();
|
||||
|
|
|
|||
Loading…
Reference in New Issue