check if connect() has been called