summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2016-06-29 11:16:14 -0400
committerJoe George <joe@zeroc.com>2016-06-29 11:26:52 -0400
commit9d5e62c9d1c721b4fc116a5108c81162d2df8c9d (patch)
tree75b9b27e786bb64c3ffbc1fe0565dda531af2d54 /cpp/src/Ice/UdpTransceiver.cpp
parentReduced number of symbols exported by generated code with MSVC (diff)
downloadice-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-xcpp/src/Ice/UdpTransceiver.cpp24
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)
{