Comment 2 for bug 713656

Revision history for this message
Martin Fox (belden-fox) wrote :

I encountered this bug also. From what I can tell the problem is that the connection is not synchronous; the connect call spawns a thread to actually connect and until that thread is initialized the CheckIfWiredConnecting or CheckIfWirelessConnecting calls return false. My (hack) solution was to insert this line

time.sleep(0.1)

into the script before the check calls are made. The correct solution is for the CheckIfBlahConnecting calls to return the right value during the interval between the Connect call and when the thread starts running.