Fix left open DebugSession in Katana::NegociateWindow::createTrackSegment().

This commit is contained in:
Jean-Paul Chaput 2020-11-17 15:02:24 +01:00
parent 2fab191cef
commit 0d372365e1
1 changed files with 2 additions and 0 deletions

View File

@ -358,6 +358,7 @@ namespace Katana {
, getString(autoSegment).c_str() , getString(autoSegment).c_str()
, getString(blockageSpan).c_str() ) << endl; , getString(blockageSpan).c_str() ) << endl;
cdebug_tabw(159,-1); cdebug_tabw(159,-1);
DebugSession::close();
return NULL; return NULL;
} }
} }
@ -378,6 +379,7 @@ namespace Katana {
_segments.push_back( trackSegment ); _segments.push_back( trackSegment );
cdebug_log(159,0) << "Non-preferred direction, do not attempt to set on track." << endl; cdebug_log(159,0) << "Non-preferred direction, do not attempt to set on track." << endl;
cdebug_tabw(159,-1); cdebug_tabw(159,-1);
DebugSession::close();
return trackSegment; return trackSegment;
} }