Skip to content

Commit 5260c98

Browse files
committed
add timeout - fixes issue when you forgot to logout from hostel and attempt login at library
1 parent 3766c75 commit 5260c98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitc_fwd/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ def main():
164164
firewall_keepalive_url = config["keepalive"]
165165
logger.info("loaded existing keepalive url from config")
166166
try:
167+
logger.info("using old keepalive, " + firewall_keepalive_url, timeout=3)
167168
requests.get(firewall_keepalive_url)
168-
logger.info("using old keepalive, " + firewall_keepalive_url)
169169
keepalive(firewall_keepalive_url)
170170
except Exception as e:
171171
logging.error("failed not use old keepalive, re-logging in")

0 commit comments

Comments
 (0)