]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_netChannel.cxx
Drop explicit SDK setting on Mac
[simgear.git] / simgear / io / sg_netChannel.cxx
index e62e120ad173c3240e3a7a25151a03636b38fd25..1561e8de464bbbc83413915f1b53d82ec2367727 100644 (file)
@@ -251,6 +251,11 @@ NetChannelPoller::removeChannel(NetChannel* channel)
     assert(channel->poller == this);
     channel->poller = NULL;
     
+    // portability: MSVC throws assertion failure when empty
+    if (channels.empty()) {
+        return;
+    }
+
     ChannelList::iterator it = channels.begin();
     for (; it != channels.end(); ++it) {
         if (*it == channel) {