def disconnect(self):
        self.DEBUG("Closing socket",'stop')
        self._sock.close()
Scheduled tasks should not be run until the reactor starts running.
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/xmpppy/xmpp/transports.py/TCPsocket.disconnect--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_internet.py/CallFromThreadTestCase.test_scheduledThreadsNotRunUntilReactorRuns