Remove the return value in traffic IPC

This commit is contained in:
Max Lv
2018-02-05 01:38:45 -08:00
parent 81f35acf20
commit 439d56d1d7
2 changed files with 1 additions and 2 deletions
@@ -37,7 +37,6 @@ class TrafficMonitorThread : LocalSocketListener("TrafficMonitorThread") {
if (socket.inputStream.read(buffer) != 16) throw IOException("Unexpected traffic stat length")
val stat = ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN)
TrafficMonitor.update(stat.getLong(0), stat.getLong(8))
socket.outputStream.write(0)
} catch (e: IOException) {
Log.e(tag, "Error when recv traffic stat", e)
app.track(e)