Skip to content

Commit

Permalink
fix: channel does not need to be non-blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed May 2, 2024
1 parent 691617b commit eec5bde
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@ actual class Connection {

for (i in 0..9) {
try {
pipe = SocketChannel.open().apply {
configureBlocking(false)
connect(UnixDomainSocketAddress.of("$dir/discord-ipc-$i"))
}
pipe = SocketChannel.open(UnixDomainSocketAddress.of("$dir/discord-ipc-$i"))
return
} catch (_: InvalidPathException) {
} catch (_: IllegalArgumentException) {
Expand Down

0 comments on commit eec5bde

Please sign in to comment.