Fix incorrect login time in error when log_session is not enabled

This commit is contained in:
Andrey Borodin 2020-03-11 12:25:34 +05:00 committed by kirill reshke
parent 1b6f168c3d
commit a5649e8cce
1 changed files with 1 additions and 2 deletions

View File

@ -101,8 +101,7 @@ od_system_server(void *arg)
client->tls = server->tls; client->tls = server->tls;
client->time_accept = 0; client->time_accept = 0;
client->notify_io = notify_io; client->notify_io = notify_io;
if (instance->config.log_session) client->time_accept = machine_time_us();
client->time_accept = machine_time_us();
/* create new client event and pass it to worker pool */ /* create new client event and pass it to worker pool */
machine_msg_t *msg; machine_msg_t *msg;