From fd4b3e831d48365afdfc751945b0c3ece0e0bd33 Mon Sep 17 00:00:00 2001 From: Andrew Dinh Date: Sun, 8 Sep 2019 22:17:29 -0700 Subject: [PATCH] Update Functions.py --- Functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Functions.py b/Functions.py index d27f362..47ca0d7 100644 --- a/Functions.py +++ b/Functions.py @@ -152,6 +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.create_connection(('1.1.1.1', 53)) print('Internet connection is good') return True