lib/nightcrawler_swift/cli/runner.rb in nightcrawler_swift-0.8.0 vs lib/nightcrawler_swift/cli/runner.rb in nightcrawler_swift-0.8.1
- old
+ new
@@ -103,9 +103,10 @@
NightcrawlerSwift.logger.debug "Cache found, restablishing connection with token_id: #{token_id}"
rescue
log "Failed to restore connection, removing cache"
File.delete cache_path
+ NightcrawlerSwift.connection.auth_response = nil
end
end
def parse_parameters
@opt_parser.parse!