#ifndef ONEWAY
/* Check if the server has responded */
- if((curr_time - available_server) > (3*NOTIFY_TIME))
+ if((curr_time - available_server) > agt->max_time_reconnect_try)
{
/* If response is not available, set lock and
* wait for it.
/* Check if time has elapsed */
- if((curr_time - g_saved_time) < (NOTIFY_TIME - 120))
+ if((curr_time - g_saved_time) < agt->notify_time)
{
return;
}