diff --git a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt index 78e11fc..8220a45 100644 --- a/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt +++ b/app/src/main/java/io/github/chronosx88/yggdrasil/YggdrasilTunService.kt @@ -216,9 +216,7 @@ class YggdrasilTunService : VpnService() { try { // Read the outgoing packet from the input stream. val length = tunInputStream.read(buffer) - if(length>0) { - yggConduitEndpoint.send(buffer.sliceArray(IntRange(0, length - 1))) - } + yggConduitEndpoint.send(buffer.sliceArray(IntRange(0, length - 1))) } catch (e: IOException) { e.printStackTrace() }