From 2dd60c81a733a588f5aa627c07769218a1aafc61 Mon Sep 17 00:00:00 2001 From: Andrew Dinh Date: Sun, 8 Sep 2019 22:18:18 -0700 Subject: [PATCH] Update Functions.py --- Functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Functions.py b/Functions.py index 47ca0d7..b536b1a 100644 --- a/Functions.py +++ b/Functions.py @@ -152,7 +152,7 @@ def isConnected(): import socket # To check internet connection try: # connect to the host -- tells us if the host is actually reachable - socket.setdefaulttimeout(timeout) + socket.setdefaulttimeout(5) socket.create_connection(('1.1.1.1', 53)) print('Internet connection is good') return True