summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/UdpTransceiver.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2018-02-22 12:31:35 +0100
committerJose <jose@zeroc.com>2018-02-22 12:31:35 +0100
commitf61c4105b3df847e87df39388fea01ad0c820075 (patch)
tree9e995b8f72e2092f0571808781354f59a9866b99 /cpp/src/Ice/UdpTransceiver.cpp
parentFix ami test script to run collocated test only if available (diff)
downloadice-f61c4105b3df847e87df39388fea01ad0c820075.tar.bz2
ice-f61c4105b3df847e87df39388fea01ad0c820075.tar.xz
ice-f61c4105b3df847e87df39388fea01ad0c820075.zip
UWP crash if udp send completes after transceiver is close
Diffstat (limited to 'cpp/src/Ice/UdpTransceiver.cpp')
-rwxr-xr-xcpp/src/Ice/UdpTransceiver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Ice/UdpTransceiver.cpp b/cpp/src/Ice/UdpTransceiver.cpp
index 9a8c534683b..b2c29a95676 100755
--- a/cpp/src/Ice/UdpTransceiver.cpp
+++ b/cpp/src/Ice/UdpTransceiver.cpp
@@ -576,7 +576,7 @@ IceInternal::UdpTransceiver::getOutputStreamCompleted(concurrency::task<IOutputS
void
IceInternal::UdpTransceiver::finishWrite(Buffer& buf)
{
- if(_state < StateConnected)
+ if(_fd == INVALID_SOCKET || _state < StateConnected)
{
return;
}