Browse Source

Put perror() call inside ifdef.

Brucey 5 years ago
parent
commit
55b16842f3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      enet.mod/enet/include/enet.h

+ 3 - 1
enet.mod/enet/include/enet.h

@@ -3116,7 +3116,9 @@ extern "C" {
                 enet_protocol_remove_sent_unreliable_commands(currentPeer);
 
                 if (sentLength < 0) {
-perror("sent no bytes");
+                    #ifdef ENET_DEBUG
+                        perror("sent no bytes");
+                    #endif
                     return -1;
                 }