fix bug where sync_photos would not handle multiple connections properly