From 59b4a887c739f8178686cecf931a26ebe365be43 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 27 Jan 2018 20:05:55 -0600 Subject: [PATCH] properly close setpeerinfo db --- onionr/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onionr/core.py b/onionr/core.py index 0adf93e1..bfd42d0e 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -323,6 +323,8 @@ class Core: # TODO: validate key on whitelist c.execute('UPDATE peers SET ' + key + ' = ? where id=?', command) + conn.commit() + conn.close() def getBlockList(self, unsaved=False): '''get list of our blocks'''