Fixed a typo when the list of connections is empty.
Rewrote init_connections() to be blocking.
Merge branch 'async_demon_reconnect'