even more attempted changes for ipMIDI on windows
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Dec 2015 06:17:49 +0000 (01:17 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 12 Dec 2015 06:17:49 +0000 (01:17 -0500)
libs/midi++2/ipmidi_port.cc

index 7357f6743ab063d76d6ffbd6e2ba13977a199f66..021093555c6b81d0d38dea5a911fbb5a48781047 100644 (file)
@@ -257,7 +257,7 @@ IPMIDIPort::open_sockets (int base_port, const string& ifname)
                error << "cannot set non-blocking mode for IP MIDI input socket (" << ::strerror (errno) << ')' << endmsg;
                return false;
        }
-       imode = 1;
+       mode = 1; /* just in case it was modified in the previous call */
        if (ioctlsocket(sockout,FIONBIO,&mode)) {
                error << "cannot set non-blocking mode for IP MIDI output socket (" << ::strerror (errno) << ')' << endmsg;
                return false;