Make sure onReconnect gets called. This is a regresison from #1044