1364:a2e74a43fadc | 1365:8f8cad8f989e |
---|---|
9 | 9 |
10 import struct | 10 import struct |
11 import io | 11 import io |
12 | 12 |
13 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ | 13 from PyQt4.QtCore import QProcess, QProcessEnvironment, QObject, QByteArray, \ |
14 QCoreApplication | 14 QCoreApplication, QThread |
15 from PyQt4.QtGui import QDialog | 15 from PyQt4.QtGui import QDialog |
16 | 16 |
17 from .HgClientPromptDialog import HgClientPromptDialog | 17 from .HgClientPromptDialog import HgClientPromptDialog |
18 | 18 |
19 import Preferences | 19 import Preferences |
238 | 238 |
239 if self.__cancel: | 239 if self.__cancel: |
240 return -10 | 240 return -10 |
241 | 241 |
242 if self.__server.bytesAvailable() == 0: | 242 if self.__server.bytesAvailable() == 0: |
243 QThread.msleep(50) | |
243 continue | 244 continue |
244 channel, data = self.__readChannel() | 245 channel, data = self.__readChannel() |
245 | 246 |
246 # input channels | 247 # input channels |
247 if channel in inputChannels: | 248 if channel in inputChannels: |