Skip to content

Commit

Permalink
fix update failing if a parallel pool was left open
Browse files Browse the repository at this point in the history
  • Loading branch information
tholden committed Aug 30, 2017
1 parent 4b72e5c commit 829cc1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dynareOBC.m
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ function dynareOBC( InputFileName, varargin )

OriginalPath = path;
addpath( [ dynareOBCPath '/Core/Setup/' ] );
addpath( [ dynareOBCPath '/Core/Utils/' ] );

fprintf( '\n' );
try
Expand All @@ -560,6 +561,7 @@ function dynareOBC( InputFileName, varargin )
fprintf( '\n' );

if lower( strtrim( UpdateSelection( 1 ) ) ) == 'y'
ClosePool;
fprintf( '\n' );
disp( 'Downloading the latest release.' );
disp( 'This may take several minutes even on fast university connections.' );
Expand Down

0 comments on commit 829cc1d

Please sign in to comment.