From 5a7d86cca921fbbc6aa3c623c699ddb84ea5fc8f Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 24 Jun 2013 16:57:19 -0400 Subject: [PATCH] Fix edge-case bug in possibleNewPubkey function --- src/class_receiveDataThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_receiveDataThread.py b/src/class_receiveDataThread.py index 3d658255..46dfeeae 100644 --- a/src/class_receiveDataThread.py +++ b/src/class_receiveDataThread.py @@ -1115,7 +1115,7 @@ class receiveDataThread(threading.Thread): t = (toRipe,) shared.sqlLock.acquire() shared.sqlSubmitQueue.put( - '''UPDATE sent SET status='doingmsgpow' WHERE toripe=? AND status='awaitingpubkey' and folder='sent' ''') + '''UPDATE sent SET status='doingmsgpow' WHERE toripe=? AND (status='awaitingpubkey' or status='doingpubkeypow') and folder='sent' ''') shared.sqlSubmitQueue.put(t) shared.sqlReturnQueue.get() shared.sqlSubmitQueue.put('commit')