travis fix

This commit is contained in:
ingvar1995 2016-08-01 18:00:03 +03:00
parent 2a0895018a
commit 39fe859fe5
2 changed files with 10 additions and 3 deletions

View File

@ -11,6 +11,7 @@ from tox import bin_to_string
from plugin_support import PluginLoader from plugin_support import PluginLoader
import queue import queue
import threading import threading
import util
# ----------------------------------------------------------------------------------------------------------------- # -----------------------------------------------------------------------------------------------------------------
@ -63,10 +64,15 @@ class FileTransfersThread(threading.Thread):
except queue.Empty: except queue.Empty:
pass pass
except queue.Full: 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 = FileTransfersThread()
_thread.start()
def start():
_thread.start()
def stop(): def stop():

View File

@ -8,7 +8,7 @@ except ImportError:
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
from bootstrap import node_generator from bootstrap import node_generator
from mainscreen import MainWindow from mainscreen import MainWindow
from callbacks import init_callbacks, stop from callbacks import init_callbacks, stop, start
from util import curr_directory, program_version from util import curr_directory, program_version
import styles.style import styles.style
import platform import platform
@ -262,6 +262,7 @@ class Toxygen:
plugin_helper = PluginLoader(self.tox, settings) # plugin support plugin_helper = PluginLoader(self.tox, settings) # plugin support
plugin_helper.load() plugin_helper.load()
start()
# init thread # init thread
self.init = self.InitThread(self.tox, self.ms, self.tray) self.init = self.InitThread(self.tox, self.ms, self.tray)
self.init.start() self.init.start()