Skip to content

Commit

Permalink
Process only relevant events.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Apr 27, 2024
1 parent d574e5c commit c835366
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions org.jgrapes.io/src/org/jgrapes/net/SslCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ public void onOpenConnection(OpenSocketConnection event) {
* the accepted event
*/
@Handler(channels = EncryptedChannel.class)
public void onConnected(Connected<?> event, IOSubchannel encryptedChannel) {
new PlainChannel(event, encryptedChannel);
public void onConnected(ClientConnected event,
IOSubchannel encryptedChannel) {
if (event.openEvent().associated(SslCodec.class).isPresent()) {
new PlainChannel(event, encryptedChannel);
}
}

/**
Expand Down

0 comments on commit c835366

Please sign in to comment.