From 682f2fc8ee154f62c6881560fc4c7bbac9e2eb98 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Dec 2009 23:02:44 +0000 Subject: Fix assertion failure on creating a new session. git-svn-id: svn://localhost/ardour2/branches/3.0@6391 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/io.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/io.cc') 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 r = ConnectingLegal (); + return r.get_value_or (0); } void -- cgit v1.2.3