Skip to content

Commit

Permalink
ebookjapan: Ignore errors when closing the driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
MinoMino committed Nov 29, 2016
1 parent 1f42e54 commit 13b9fd0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/ebookjapan/ebookjapan.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,7 @@ func (ebj *EBookJapan) DownloadGenerator(url string) (dlgen func() plugins.Downl
once = true
return func(n int, rep plugins.Reporter) error {
// Make sure we stop the driver before we exit.
defer func() {
if err := driver.Stop(); err != nil {
panic("Failed to stop WebDriver: " + err.Error())
}
}()
defer driver.Stop()

for i := 0; i < length; i++ {
// Prefetch pages before we start polling.
Expand Down

0 comments on commit 13b9fd0

Please sign in to comment.