From 39fe859fe5177070da2b2f78d5ffc823f44816ba Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Mon, 1 Aug 2016 18:00:03 +0300 Subject: [PATCH] travis fix --- toxygen/callbacks.py | 10 ++++++++-- toxygen/main.py | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/toxygen/callbacks.py b/toxygen/callbacks.py index 02a69ca..f85d7a3 100644 --- a/toxygen/callbacks.py +++ b/toxygen/callbacks.py @@ -11,6 +11,7 @@ from tox import bin_to_string from plugin_support import PluginLoader import queue import threading +import util # ----------------------------------------------------------------------------------------------------------------- @@ -63,10 +64,15 @@ class FileTransfersThread(threading.Thread): except queue.Empty: pass except queue.Full: - print('Full') + util.log('Queue is Full in _thread') + except Exception as ex: + util.log('Exception in _thread: ' + str(ex)) _thread = FileTransfersThread() -_thread.start() + + +def start(): + _thread.start() def stop(): diff --git a/toxygen/main.py b/toxygen/main.py index 42b22c1..6f34785 100644 --- a/toxygen/main.py +++ b/toxygen/main.py @@ -8,7 +8,7 @@ except ImportError: from PyQt4 import QtCore, QtGui from bootstrap import node_generator from mainscreen import MainWindow -from callbacks import init_callbacks, stop +from callbacks import init_callbacks, stop, start from util import curr_directory, program_version import styles.style import platform @@ -262,6 +262,7 @@ class Toxygen: plugin_helper = PluginLoader(self.tox, settings) # plugin support plugin_helper.load() + start() # init thread self.init = self.InitThread(self.tox, self.ms, self.tray) self.init.start()