From 4de01f02f543a08b4295d78b875b789e343361ff Mon Sep 17 00:00:00 2001 From: Ilker Temir Date: Sat, 11 Jul 2015 16:51:34 -0700 Subject: [PATCH] Fixes issue #18. --- chrome/content/settings.js | 2 +- chrome/content/thundersec.js | 2 ++ install.rdf | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/settings.js b/chrome/content/settings.js index 01022c3..b22b8ab 100644 --- a/chrome/content/settings.js +++ b/chrome/content/settings.js @@ -21,6 +21,6 @@ const DB_NAME = 'thundersec.sqlite'; const API_URL = 'https://www.ilkertemir.com/thundersec/api/v1/'; -const VERSION = '1.0.3'; +const VERSION = '1.0.4'; // Send generic stats every hour const STAT_INTERVAL = 1*60*60*1000; diff --git a/chrome/content/thundersec.js b/chrome/content/thundersec.js index 2cabfa8..832dc3d 100644 --- a/chrome/content/thundersec.js +++ b/chrome/content/thundersec.js @@ -49,6 +49,8 @@ function initialize() { } quitObserver.prototype = { observe: function(subject, topic, data) { + // Close the database connection + connection.close(); // This has to be an async request while application is quitting // Or Thunderbird will quit before the $.post completes jQuery.ajaxSetup({async:false}); diff --git a/install.rdf b/install.rdf index 5052675..c96ad87 100644 --- a/install.rdf +++ b/install.rdf @@ -4,7 +4,7 @@ 2 thundersec@community - 1.0.3 + 1.0.4 ThunderSec Provides security features for Mozilla Thunderbird. These include DNSBL and RBL support, DKIM and SPF failure verifications. DNSBL support can be used to leverage Spamhaus, Abuse.ch and other DNSBL/RBL databases, including custom ones. chrome://thundersec/content/images/thundersec.png