Skip to content

Commit b649087

Browse files
committed
fix(core): call SRT url pre-bind to a socket that is going to connect
1 parent 2d7c76a commit b649087

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

srtdroid-core/src/main/java/io/github/thibaultbee/srtdroid/core/extensions/SocketExtensions.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ fun SrtSocket.connect(srtUrl: SrtUrl) {
6161
}
6262

6363
srtUrl.preApplyTo(this)
64+
srtUrl.preBindApplyTo(this)
6465
connect(srtUrl.hostname, srtUrl.port)
6566
srtUrl.postApplyTo(this)
6667
}
@@ -91,6 +92,7 @@ fun SrtSocket.rendezVous(
9192
}
9293

9394
srtUrl.preApplyTo(this)
95+
srtUrl.preBindApplyTo(this)
9496
rendezVous(srtUrl.hostname, srtUrl.hostname, srtUrl.port)
9597
srtUrl.postApplyTo(this)
9698
}

0 commit comments

Comments
 (0)