update last activity time after checking expire time.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>