Skip to content

Commit

Permalink
Merge pull request #6 from flowsprenger/5-close-channel-ioexeception-…
Browse files Browse the repository at this point in the history
…send

[5] when receiving an IOException on sending a message, close the rea…
  • Loading branch information
flowsprenger authored Sep 4, 2020
2 parents bd864d9 + 9d84011 commit 1b2dfbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugins {

apply plugin: 'org.junit.platform.gradle.plugin'

version "0.1.0-alpha"
version "0.0.12"

apply plugin: 'java'
apply plugin: 'kotlin'
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/wo/lf/lifx/net/UdpTransport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class UdpTransport<T>(val port: Int, private val parser: LifxMessageParser<T>, p
}
} catch (e: NotYetConnectedException) {
channel.close()
} catch (e: IOException) {
channel.close()
}
}

Expand Down

0 comments on commit 1b2dfbf

Please sign in to comment.