Add missing volatile

This commit is contained in:
Mygod
2016-03-11 22:05:13 +08:00
parent 216cc9efe2
commit 390d79c9aa
@@ -60,7 +60,7 @@ class GuardedProcess(cmd: Seq[String]) extends Process {
def start(onRestartCallback: () => Unit = null): GuardedProcess = {
val semaphore = new Semaphore(1)
semaphore.acquire
var ioException: IOException = null
@volatile var ioException: IOException = null
guardThread = new Thread(() => {
try {