Commit 439d56d1 authored by Max Lv's avatar Max Lv

Remove the return value in traffic IPC

parent 81f35acf
Subproject commit 6040be9d0af812382934defe317c2e28434494ad
Subproject commit 1a21989566e778139c489d5f8972979bda9b16c1
......@@ -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)
......
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