diff options
author | Joe George <joe@zeroc.com> | 2016-06-29 11:16:14 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2016-06-29 11:26:52 -0400 |
commit | 9d5e62c9d1c721b4fc116a5108c81162d2df8c9d (patch) | |
tree | 75b9b27e786bb64c3ffbc1fe0565dda531af2d54 /cpp/src/Ice/UdpTransceiver.cpp | |
parent | Reduced number of symbols exported by generated code with MSVC (diff) | |
download | ice-9d5e62c9d1c721b4fc116a5108c81162d2df8c9d.tar.bz2 ice-9d5e62c9d1c721b4fc116a5108c81162d2df8c9d.tar.xz ice-9d5e62c9d1c721b4fc116a5108c81162d2df8c9d.zip |
Whitespace cleanup - tabs to spaces
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rwxr-xr-x | cpp/src/Ice/UdpTransceiver.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp index 4c1c277829f..3ec0db137e2 100755 --- a/cpp/src/Ice/UdpTransceiver.cpp +++ b/cpp/src/Ice/UdpTransceiver.cpp @@ -461,18 +461,18 @@ IceInternal::UdpTransceiver::startWrite(Buffer& buf) DataWriter^ writer = ref new DataWriter(task.get()); writer->WriteBytes(ref new Array<unsigned char>(&*buf.i, static_cast<int>(buf.b.size()))); DataWriterStoreOperation^ operation = writer->StoreAsync(); - if(operation->Status == Windows::Foundation::AsyncStatus::Completed) - { - // - // NOTE: unlike other methods, it's important to modify _write.count - // _before_ calling checkIfErrorOrCompleted since this isn't called - // with the connection mutex but from a Windows thread pool thread. - // So we can't modify the _write structure after calling the - // completed callback. - // - _write.count = operation->GetResults(); - } - queueOperation(SocketOperationWrite, operation); + if(operation->Status == Windows::Foundation::AsyncStatus::Completed) + { + // + // NOTE: unlike other methods, it's important to modify _write.count + // _before_ calling checkIfErrorOrCompleted since this isn't called + // with the connection mutex but from a Windows thread pool thread. + // So we can't modify the _write structure after calling the + // completed callback. + // + _write.count = operation->GetResults(); + } + queueOperation(SocketOperationWrite, operation); } catch(Platform::Exception^ pex) { |