mirror of
https://github.com/sbt/sbt.git
synced 2026-09-01 10:37:54 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user