From 4e40bb7c37e544c64ce2cc41cca62e2425687e67 Mon Sep 17 00:00:00 2001 From: Cedric RICARD Date: Sat, 23 Feb 2008 18:07:16 +0000 Subject: [PATCH] NetServices : make TIMESTAMP not mandatory for server --- calexium_lib/net_services/CXM_generic_client.anubis | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/calexium_lib/net_services/CXM_generic_client.anubis b/calexium_lib/net_services/CXM_generic_client.anubis index 662e568..596f132 100644 --- a/calexium_lib/net_services/CXM_generic_client.anubis +++ b/calexium_lib/net_services/CXM_generic_client.anubis @@ -131,12 +131,12 @@ define Maybe($T) { failure then logger("["+queue.get_name(unique)+"]: requesting service RESULT not found");failure, success(result) then - if find_string(msg, "TIMESTAMP") is - { - failure then logger("["+queue.get_name(unique)+"]: requesting service TIMESTAMP not found");failure, - success(timestamp) then - handler(queue, timestamp) - } + with timestamp = if find_string(msg, "TIMESTAMP") is + { + failure then logger("["+queue.get_name(unique)+"]: requesting service TIMESTAMP not found");failure, + success(timestamp) then timestamp + }, + handler(queue, timestamp) } else logger("["+queue.get_name(unique)+"]: requested service started won't start");failure -- libgit2 0.21.4