Fix edge-case bug in possibleNewPubkey function

This commit is contained in:
Jonathan Warren 2013-06-24 16:57:19 -04:00
parent dacd9aa925
commit 5a7d86cca9

View File

@ -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')