diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-11-22 18:05:21 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-11-22 18:05:21 +0100 |
commit | f9bf0ccb7e582995003069d6228b7c9d10752cfa (patch) | |
tree | f461e9532517adb3cd99241e416a2c6c2ff04158 /cpp/src/Ice/UdpTransceiver.cpp | |
parent | ICE-4966 - INSTALL fixes (diff) | |
download | ice-f9bf0ccb7e582995003069d6228b7c9d10752cfa.tar.bz2 ice-f9bf0ccb7e582995003069d6228b7c9d10752cfa.tar.xz ice-f9bf0ccb7e582995003069d6228b7c9d10752cfa.zip |
Fixed ICE-4982 and ICE-4985: WinRT Udp test failures
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rw-r--r-- | cpp/src/Ice/UdpTransceiver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp index c630f374f00..1147d6c45ce 100644 --- a/cpp/src/Ice/UdpTransceiver.cpp +++ b/cpp/src/Ice/UdpTransceiver.cpp @@ -420,7 +420,10 @@ IceInternal::UdpTransceiver::startWrite(Buffer& buf) { _write.count = 0; _writer = ref new DataWriter(operation->GetResults()); - setMcastGroup(_fd, _mcastAddr, ""); + if(_mcastAddr.host != nullptr) + { + setMcastGroup(_fd, _mcastAddr, ""); + } } } } @@ -446,6 +449,7 @@ IceInternal::UdpTransceiver::startWrite(Buffer& buf) if(checkIfErrorOrCompleted(SocketOperationWrite, operation)) { _write.count = operation->GetResults(); + _completedHandler(SocketOperationWrite); } else { |