diff --git a/src/voip/turn_tcp.cpp b/src/voip/turn_tcp.cpp index 557b78868..9c0e410a0 100644 --- a/src/voip/turn_tcp.cpp +++ b/src/voip/turn_tcp.cpp @@ -397,7 +397,7 @@ int TurnSocket::connect() { close(); return -1; } else if (optVal != 0) { - ms_error("TurnSocket [%p]: failed to connect to server (%d): %s", this, optVal, getSocketErrorWithCode(optVal)); + ms_error("TurnSocket [%p]: failed to connect to server (%d): %s", this, optVal, getSocketError()); close(); return -1; }