Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Only update version on publishing to Maven Central
version=1.7.3
version=1.7.4
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
super.channelInactive(ctx);
}

@Override
public boolean isActive() {
Channel ch = this.channel;
return ch != null && ch.isActive();
}

@Override
public void close() {
if (channel != null) channel.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ public void setNotFoundHandler(NetherNetClientSignaling.NotFoundHandler handler)
// Not implemented for Discovery signaling
}

@Override
public boolean isActive() {
return this.discovery.isActive();
}

@Override
public void close() {
this.discovery.close();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public interface NetherNetSignaling extends AutoCloseable {
*/
String getLocalNetworkId();

/**
* Whether the signaling is connected and able to carry messages
*/
boolean isActive();

/**
* Closes the signaling channel and releases any associated resources.
*/
Expand Down