Skip to content

Commit

Permalink
Firefox Quit
Browse files Browse the repository at this point in the history
It's important to explicitly quit the browser or else it hangs around
after diffengine has exited, which can start to hog resources after a
while.
  • Loading branch information
edsu committed Nov 26, 2019
1 parent c49fc0b commit 135d93b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion diffengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# maybe this module should be broken up into multiple files, or maybe not ...

UA = "diffengine/0.2.2 (+https://github.com/docnow/diffengine)"
UA = "diffengine/0.2.3 (+https://github.com/docnow/diffengine)"

import os
import re
Expand Down Expand Up @@ -504,6 +504,8 @@ def main():
logging.info("shutting down: new=%s checked=%s skipped=%s elapsed=%s",
new, checked, skipped, elapsed)

browser.quit()

def _dt(d):
return d.strftime("%Y-%m-%d %H:%M:%S")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.2.2"
version = "0.2.3"

import sys
if sys.version_info < (3,0):
Expand Down

0 comments on commit 135d93b

Please sign in to comment.