NSM: Don't return false error message from duplicate function.
Closes #34
This commit is contained in:
parent
4103cd016b
commit
5c6e9f8d37
|
@ -1337,7 +1337,7 @@ OSC_HANDLER( duplicate )
|
||||||
|
|
||||||
MESSAGE( "Attempting to open %s", spath );
|
MESSAGE( "Attempting to open %s", spath );
|
||||||
|
|
||||||
if ( load_session_file( spath ) )
|
if ( !load_session_file( spath ) )
|
||||||
{
|
{
|
||||||
MESSAGE( "Loaded" );
|
MESSAGE( "Loaded" );
|
||||||
osc_server->send( lo_message_get_source( msg ), "/reply", path,
|
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,
|
osc_server->send( lo_message_get_source( msg ), "/error", path,
|
||||||
ERR_NO_SUCH_FILE,
|
ERR_NO_SUCH_FILE,
|
||||||
"No such file." );
|
"No such file." );
|
||||||
|
free(spath);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
free( spath );
|
free( spath );
|
||||||
|
|
Loading…
Reference in New Issue