just return an empty buffer if the port read fails

git-svn-id: svn://localhost/ardour2/trunk@1565 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
John Anderson
2007-03-09 11:23:39 +00:00
parent 355c078023
commit a48a83ae5a

View File

@@ -62,8 +62,8 @@ MidiByteArray SurfacePort::read()
ostringstream os;
os << "error reading from port: " << port().name() << " nread: " << nread;
cout << os.str() << endl;
inactive_event();
throw MackieControlException( os.str() );
//inactive_event();
//throw MackieControlException( os.str() );
}
return retval;
}