mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Remove redundant receiver
This commit is contained in:
parent
569e69b062
commit
630850c54c
@ -73,7 +73,7 @@ private fun listenDevice(localIp: String, device: PcapNetworkInterface) {
|
||||
runBlocking {
|
||||
withContext(DISPATCHER) {
|
||||
try {
|
||||
PacketDebugger.dataReceived(it.rawData.drop(42).toByteArray())
|
||||
dataReceived(it.rawData.drop(42).toByteArray())
|
||||
} catch (e: Throwable) {
|
||||
e.printStackTrace()
|
||||
}
|
||||
@ -117,6 +117,7 @@ internal fun Recorder.writeTo(file: File) {
|
||||
file.writeText(Json.plain.toJson(ArrayListSerializer(Recorder.Record.serializer()), this.list).toString(), Charset.defaultCharset())
|
||||
}
|
||||
|
||||
@Suppress("unused")
|
||||
suspend fun main() {
|
||||
|
||||
fun startPacketListening() {
|
||||
|
Loading…
Reference in New Issue
Block a user