mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-10-02 23:11:41 +02:00
Create a Fake shutdown event so that users of the API are not required to register a shutdown event
This commit is contained in:
+8
-1
@@ -17,9 +17,16 @@
|
||||
|
||||
__version__ = '1.0.0'
|
||||
|
||||
|
||||
class FakeShutdownEvent(object):
|
||||
@staticmethod
|
||||
def isSet():
|
||||
return False
|
||||
|
||||
|
||||
# Some global variables we use
|
||||
source = None
|
||||
shutdown_event = None
|
||||
shutdown_event = FakeShutdownEvent()
|
||||
|
||||
import math
|
||||
import time
|
||||
|
||||
Reference in New Issue
Block a user