diff options
author | Carl Hetherington <carl@carlh.net> | 2009-12-22 23:02:44 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-12-22 23:02:44 +0000 |
commit | 682f2fc8ee154f62c6881560fc4c7bbac9e2eb98 (patch) | |
tree | 4de4b15766cef4092848a5e5a9c969f11ce94362 /libs/ardour/io.cc | |
parent | c83389b8ec5fef9553a401e6123b7e55702af9e2 (diff) |
Fix assertion failure on creating a new session.
git-svn-id: svn://localhost/ardour2/branches/3.0@6391 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r-- | libs/ardour/io.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc index 9066acac91..c9d3f6be08 100644 --- a/libs/ardour/io.cc +++ b/libs/ardour/io.cc @@ -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 |