diff --git a/CHANGELOG b/CHANGELOG index 755c1ba..8c25448 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +v1.4 +Fixed reply for listing sessions from a plain "Done." to proper reply path with empty string as terminal symbol "/reply", "/nsm/server/list", "" + /nsm/server/list "" raises NSM_API_VERSION_MINOR from 1 to 2 (1.1 -> 1.2) +Fix operation reply to last treated client instead to reply to sender (houston/mathieu picot) + v1.3.2 Rename new-session-manager executable to nsm-legacy-gui to prevent future confusion. diff --git a/src/nsmd.cpp b/src/nsmd.cpp index 278f772..2a2036a 100644 --- a/src/nsmd.cpp +++ b/src/nsmd.cpp @@ -68,7 +68,7 @@ static int session_lock_fd = 0; static char *session_root; #define NSM_API_VERSION_MAJOR 1 -#define NSM_API_VERSION_MINOR 1 +#define NSM_API_VERSION_MINOR 2 #define ERR_OK 0 #define ERR_GENERAL_ERROR -1 @@ -1589,9 +1589,11 @@ OSC_HANDLER( list ) ftw( session_root, list_file, 20 ); - osc_server->send( lo_message_get_source( msg ), path, - ERR_OK, - "Done." ); + // osc_server->send( lo_message_get_source( msg ), path, ERR_OK, "Done." ); + + // As marker that all sessions were sent reply with an empty string, which is impossible to conflict with a session name + osc_server->send( list_response_address, "/reply", "/nsm/server/list", "" ); + return 0; }