diff options
Diffstat (limited to 'src/main/kotlin/NinePConnection.kt')
-rw-r--r-- | src/main/kotlin/NinePConnection.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/kotlin/NinePConnection.kt b/src/main/kotlin/NinePConnection.kt index ccac9c5..3c7c622 100644 --- a/src/main/kotlin/NinePConnection.kt +++ b/src/main/kotlin/NinePConnection.kt @@ -96,11 +96,12 @@ class NinePConnection(netPackTrans: NetworkPacketTransporter) : NinePTranslator * * @param tag The tag to wait for. * @return A pair of (1) the size and (2) the type of the message that matches the given tag. + * @throws java.io.IOException if the message could not be correctly received. */ private fun waitForTag(tag: UShort): Pair<UInt, NinePMessageType> { var s = 0u var ty: NinePMessageType? = null - var ta: UShort = 0u + var ta: UShort var found = false while (!found) { val stt = readSizeTypeTag() |