Libraries refactor and add some sinks #4
|
@ -23,11 +23,7 @@ from money import Money
|
||||||
init_map = None
|
init_map = None
|
||||||
|
|
||||||
|
|
||||||
def handler(sig, frame):
|
def cleanup(sig, frame):
|
||||||
cleanup()
|
|
||||||
|
|
||||||
|
|
||||||
def cleanup():
|
|
||||||
if init_map:
|
if init_map:
|
||||||
try:
|
try:
|
||||||
init_map["tx"].lc_es_checks.stop()
|
init_map["tx"].lc_es_checks.stop()
|
||||||
|
@ -38,7 +34,7 @@ def cleanup():
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
|
|
||||||
|
|
||||||
signal(SIGINT, handler) # Handle Ctrl-C and run the cleanup routine
|
signal(SIGINT, cleanup) # Handle Ctrl-C and run the cleanup routine
|
||||||
|
|
||||||
|
|
||||||
def convert(data):
|
def convert(data):
|
||||||
|
|
Loading…
Reference in New Issue