Remove the return value in traffic IPC
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user