Skip to content

Commit

Permalink
Release 0.5.5 (#135)
Browse files Browse the repository at this point in the history
* Check if the stream was closed on init which would leave it with no peerHandler before attempting to access the peer handler. (#134)
  • Loading branch information
ajsutton authored Aug 11, 2020
1 parent 8350a55 commit 3fd9dd9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ Builds are published to JCenter. Maven Central mirrors JCenter, but updates can
jcenter()
}
implementation 'io.libp2p:jvm-libp2p-minimal:0.5.4-RELEASE'
implementation 'io.libp2p:jvm-libp2p-minimal:0.5.5-RELEASE'
```
### Using Maven
```
<dependency>
<groupId>io.libp2p</groupId>
<artifactId>jvm-libp2p-minimal</artifactId>
<version>0.5.4-RELEASE</version>
<version>0.5.5-RELEASE</version>
<type>pom</type>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import java.nio.file.Paths
// ./gradlew bintrayUpload -PbintrayUser=<user> -PbintrayApiKey=<api-key>

group = "io.libp2p"
version = "0.5.4-RELEASE"
version = "0.5.5-RELEASE"
description = "a minimal implementation of libp2p for the jvm"

plugins {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/libp2p/etc/util/P2PServiceSemiDuplex.kt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract class P2PServiceSemiDuplex : P2PService() {
}

override fun streamActive(stream: StreamHandler) {
if (stream == (stream.getPeerHandler() as SDPeerHandler).getOutboundHandler()) {
if (!stream.aborted && stream == (stream.getPeerHandler() as SDPeerHandler).getOutboundHandler()) {
// invoke streamActive only when outbound handler is activated
super.streamActive(stream)
}
Expand Down

0 comments on commit 3fd9dd9

Please sign in to comment.