server session BUGFIX set last_rpc for new sessions
diff --git a/src/session_server.c b/src/session_server.c
index 1894cae..7d17f95 100644
--- a/src/session_server.c
+++ b/src/session_server.c
@@ -1604,7 +1604,7 @@
*session = NULL;
return msgtype;
}
- (*session)->session_start = time(NULL);
+ (*session)->session_start = (*session)->last_rpc = time(NULL);
(*session)->status = NC_STATUS_RUNNING;
return msgtype;
@@ -1728,7 +1728,7 @@
if (msgtype != NC_MSG_HELLO) {
goto fail;
}
- (*session)->session_start = time(NULL);
+ (*session)->session_start = (*session)->last_rpc = time(NULL);
(*session)->status = NC_STATUS_RUNNING;
return msgtype;