def _sendPendingMessages(self):
if len(self._queue) == <NUM_LIT:0>:<EOL><INDENT>time.sleep(<NUM_LIT:0.1>)<EOL>return<EOL><DEDENT>msg = self._queue.pop(<NUM_LIT:0>)<EOL>if msg.canSend():<EOL><INDENT>self._sendMsg(msg)<EOL>msg.refresh()<EOL>if not (msg.isFinished()):<EOL><INDENT>self._queue.append(msg)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._queue.append(msg)<EOL>time.sleep(<NUM_LIT>)<EOL><DEDENT>
Method sleeps, if nothing to do