Commit 390d79c9 authored by Mygod's avatar Mygod

Add missing volatile

parent 216cc9ef
...@@ -60,7 +60,7 @@ class GuardedProcess(cmd: Seq[String]) extends Process { ...@@ -60,7 +60,7 @@ class GuardedProcess(cmd: Seq[String]) extends Process {
def start(onRestartCallback: () => Unit = null): GuardedProcess = { def start(onRestartCallback: () => Unit = null): GuardedProcess = {
val semaphore = new Semaphore(1) val semaphore = new Semaphore(1)
semaphore.acquire semaphore.acquire
var ioException: IOException = null @volatile var ioException: IOException = null
guardThread = new Thread(() => { guardThread = new Thread(() => {
try { try {
......
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