mirror of
https://github.com/tmate-io/tmate.git
synced 2024-12-25 08:09:24 +01:00
Reset activity time to avoid relock on -U.
This commit is contained in:
parent
3a55871d04
commit
8536ad0ce7
@ -1,4 +1,4 @@
|
|||||||
/* $Id: server-fn.c,v 1.59 2009-04-27 17:27:36 nicm Exp $ */
|
/* $Id: server-fn.c,v 1.60 2009-05-28 16:24:02 nicm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -205,6 +205,7 @@ server_unlock(const char *s)
|
|||||||
|
|
||||||
if (!server_locked)
|
if (!server_locked)
|
||||||
return (0);
|
return (0);
|
||||||
|
server_activity = time(NULL);
|
||||||
|
|
||||||
if (server_password != NULL) {
|
if (server_password != NULL) {
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user