Skip to content

Commit

Permalink
Check with some? so the value can be set to false (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerauko authored Mar 12, 2024
1 parent bd98667 commit 6c29c1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/s_exp/hirundo/options.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
(.socketSendBufferSize socket-options-builder
(int socket-send-buffer-size)))

(when socket-reuse-address
(when (some? socket-reuse-address)
(.socketReuseAddress socket-options-builder
(boolean socket-reuse-address)))

(when socket-keep-alive
(when (some? socket-keep-alive)
(.socketKeepAlive socket-options-builder
(boolean socket-keep-alive)))
(when tcp-no-delay
(when (some? tcp-no-delay)
(.tcpNoDelay socket-options-builder
(boolean tcp-no-delay)))

Expand Down

0 comments on commit 6c29c1b

Please sign in to comment.