Browse Source

NSM: Don't return false error message from duplicate function.

Closes #34
tags/non-daw-v1.2.0
Jonathan Moore Liles 12 years ago
parent
commit
5c6e9f8d37
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      session-manager/src/nsmd.C

+ 3
- 1
session-manager/src/nsmd.C View File

@@ -1337,7 +1337,7 @@ OSC_HANDLER( duplicate )

MESSAGE( "Attempting to open %s", spath );

if ( load_session_file( spath ) )
if ( !load_session_file( spath ) )
{
MESSAGE( "Loaded" );
osc_server->send( lo_message_get_source( msg ), "/reply", path,
@@ -1349,6 +1349,8 @@ OSC_HANDLER( duplicate )
osc_server->send( lo_message_get_source( msg ), "/error", path,
ERR_NO_SUCH_FILE,
"No such file." );
free(spath);
return -1;
}

free( spath );


Loading…
Cancel
Save