Commit b8c593b1 authored by Mygod's avatar Mygod

Fix crash in GuardedProcess

parent 782af959
...@@ -57,7 +57,9 @@ class StreamLogger(is: InputStream, tag: String) extends Thread { ...@@ -57,7 +57,9 @@ class StreamLogger(is: InputStream, tag: String) extends Thread {
override def run() { override def run() {
withCloseable(new BufferedReader(new InputStreamReader(is))) { withCloseable(new BufferedReader(new InputStreamReader(is))) {
br => Stream.continually(br.readLine()).takeWhile(_ != null).foreach(Log.i(tag, _)) br => try Stream.continually(br.readLine()).takeWhile(_ != null).foreach(Log.i(tag, _)) catch {
case ignore: IOException =>
}
} }
} }
} }
......
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