You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UISignalQueue.put(('updateStatusBar','Done saving the knownNodes list of peers to disk.'))
258
255
259
256
broadcastToSendDataQueues((0, 'shutdown', 'all'))
260
257
261
-
printLock.acquire()
262
-
print'Flushing inventory in memory out to disk...'
263
-
printLock.release()
264
-
UISignalQueue.put(('updateStatusBar','Flushing inventory in memory out to disk. This should normally only take a second...'))
258
+
logger.info('Flushing inventory in memory out to disk...')
259
+
UISignalQueue.put((
260
+
'updateStatusBar',
261
+
'Flushing inventory in memory out to disk. This should normally only take a second...'))
265
262
flushInventory()
266
263
267
-
#This one last useless query will guarantee that the previous flush committed before we close the program.
264
+
# This one last useless query will guarantee that the previous flush committed before we close
265
+
# the program.
268
266
sqlLock.acquire()
269
267
sqlSubmitQueue.put('SELECT address FROM subscriptions')
270
268
sqlSubmitQueue.put('')
271
269
sqlReturnQueue.get()
272
270
sqlSubmitQueue.put('exit')
273
271
sqlLock.release()
274
-
printLock.acquire()
275
-
print'Finished flushing inventory.'
276
-
printLock.release()
277
-
278
-
time.sleep(.25) #Wait long enough to guarantee that any running proof of work worker threads will check the shutdown variable and exit. If the main thread closes before they do then they won't stop.
272
+
logger.info('Finished flushing inventory.')
273
+
# Wait long enough to guarantee that any running proof of work worker threads will check the
274
+
# shutdown variable and exit. If the main thread closes before they do then they won't stop.
#When you want to command a sendDataThread to do something, like shutdown or send some data, this function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are responsible for putting their queue into (and out of) the sendDataQueues list.
281
+
# When you want to command a sendDataThread to do something, like shutdown or send some data, this
282
+
# function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are
283
+
# responsible for putting their queue into (and out of) the sendDataQueues list.
0 commit comments