Fix assertion failure on creating a new session.

git-svn-id: svn://localhost/ardour2/branches/3.0@6391 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2009-12-22 23:02:44 +00:00
parent c83389b8ec
commit 682f2fc8ee

View File

@@ -1221,7 +1221,8 @@ int
IO::enable_connecting ()
{
connecting_legal = true;
return *ConnectingLegal ();
boost::optional<int> r = ConnectingLegal ();
return r.get_value_or (0);
}
void