Well that code would only be triggered if an event occurs, right? The problem is if already connected, there may be no events, and yet we need something to trigger registration if the connection is already established.