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.
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 CheckIfWiredCon necting or CheckIfWireless Connecting 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 CheckIfBlahConn ecting calls to return the right value during the interval between the Connect call and when the thread starts running.