Fix issue #1

...by periodically trying to aquire the primary port (only when
currently listening on a secondary port).