waitConnect

Call this if you want to stall until the connection is completed