Fix crash in GuardedProcess

This commit is contained in:
Mygod
2016-08-29 13:57:25 +08:00
parent 782af959a0
commit b8c593b110
@@ -57,7 +57,9 @@ class StreamLogger(is: InputStream, tag: String) extends Thread {
override def run() {
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 =>
}
}
}
}