Skip to content

Commit 308f2ea

Browse files
rtm516danorris709
andcommitted
Use cached assocation (#183)
Co-authored-by: Daniel Norris <dnorris443@gmail.com>
1 parent 49f218c commit 308f2ea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/java/com/rtm516/mcxboxbroadcast/core/webrtc/PeerSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.ice4j.ice.RemoteCandidate;
2020
import org.ice4j.ice.harvest.CandidateHarvester;
2121
import org.opentelecoms.javax.sdp.NistSdpFactory;
22-
import pe.pi.sctp4j.sctp.small.ThreadedAssociation;
22+
import pe.pi.sctp4j.sctp.small.CachedThreadedAssociation;
2323

2424
import javax.sdp.Attribute;
2525
import javax.sdp.MediaDescription;
@@ -146,7 +146,7 @@ public void receiveOffer(BigInteger from, String sessionId, String message) {
146146
// });
147147

148148
// TODO Pass some form of close handler to the association so we can clean up properly in the RtcWebsocketClient
149-
new ThreadedAssociation(dtlsTransport, new SctpAssociationListener(rtcWebsocket.sessionInfo(), rtcWebsocket.logger(), this::disconnect, sessionManager));
149+
new CachedThreadedAssociation(dtlsTransport, new SctpAssociationListener(rtcWebsocket.sessionInfo(), rtcWebsocket.logger(), this::disconnect, sessionManager), this.rtcWebsocket.scheduledExecutorService());
150150
} catch (IOException e) {
151151
throw new RuntimeException(e);
152152
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ minecraftauth = "4.1.2-SNAPSHOT"
1212
gson = "2.11.0"
1313
ice4j = "b3242a613c"
1414
bouncycastle = "1.78.1"
15-
sctp4j = "166efaab3b"
15+
sctp4j = "15e40910dd"
1616
sqlite = "3.50.2.0"
1717

1818
shadow = "8.3.0"

0 commit comments

Comments
 (0)