mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-10 15:58:40 +00:00
Fix monitor deadlock on panic
This commit is contained in:
parent
f1aff0fd96
commit
bb01b76582
@ -161,6 +161,7 @@ func copyStderr(stderr io.ReadCloser) {
|
||||
for _, line := range stdoutLastLines {
|
||||
panicFd.WriteString(line)
|
||||
}
|
||||
stdoutMut.Unlock()
|
||||
}
|
||||
|
||||
panicFd.WriteString("Panic at " + time.Now().Format(time.RFC3339) + "\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user