This is an automated email from the ASF dual-hosted git repository.

nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 3aa13c02d47 IGNITE-23535 Fix 
IgniteUtilsUnitTest.shouldNotProduceWarningsWhenClosingAnAlreadyClosedSocket 
(#11625)
3aa13c02d47 is described below

commit 3aa13c02d4702355e099f163146326bc0392c12e
Author: Vladislav Novikov <[email protected]>
AuthorDate: Wed Oct 30 18:26:39 2024 +0300

    IGNITE-23535 Fix 
IgniteUtilsUnitTest.shouldNotProduceWarningsWhenClosingAnAlreadyClosedSocket 
(#11625)
---
 .../core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java 
b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index 8f2fedeb1ef..82470199935 100755
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -4362,7 +4362,7 @@ public abstract class IgniteUtils {
      * @param log Logger to log possible checked exception with (optional).
      */
     public static void close(@Nullable Socket sock, @Nullable IgniteLogger 
log) {
-        if (sock == null)
+        if (sock == null || sock.isClosed())
             return;
 
         try {

Reply via email to