Update Functions.py

This commit is contained in:
Andrew Dinh 2019-09-08 22:18:18 -07:00 committed by GitHub
parent fd4b3e831d
commit 2dd60c81a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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