From 05b55c799f78f4511de8c15505836320a2450116 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Fri, 22 Mar 2013 12:34:12 -0400 Subject: [PATCH] start singleAPIThread only when apienabled = true --- bitmessagemain.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 44dd57e1..4ed6431f 100755 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -4134,9 +4134,6 @@ class MyForm(QtGui.QMainWindow): QtCore.QObject.connect(self.workerThread, QtCore.SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"), self.updateSentItemStatusByAckdata) QtCore.QObject.connect(self.workerThread, QtCore.SIGNAL("updateStatusBar(PyQt_PyObject)"), self.updateStatusBar) - self.singleAPIThread = singleAPI() - self.singleAPIThread.start() - if safeConfigGetBoolean('bitmessagesettings','apienabled'): try: apiNotifyPath = config.get('bitmessagesettings','apinotifypath') @@ -4147,6 +4144,8 @@ class MyForm(QtGui.QMainWindow): print 'Trying to call', apiNotifyPath printLock.release() call([apiNotifyPath, "startingUp"]) + self.singleAPIThread = singleAPI() + self.singleAPIThread.start() self.singleAPISignalHandlerThread = singleAPISignalHandler() self.singleAPISignalHandlerThread.start() QtCore.QObject.connect(self.singleAPISignalHandlerThread, QtCore.SIGNAL("updateStatusBar(PyQt_PyObject)"), self.updateStatusBar)