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
254
259
255
broadcastToSendDataQueues((0, 'shutdown', 'all'))
260
256
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...'))
257
+
logger.info('Flushing inventory in memory out to disk...')
258
+
UISignalQueue.put(('updateStatusBar','Flushing inventory in memory out to disk. '
259
+
'This should normally only take a second...'))
265
260
flushInventory()
266
261
267
-
#This one last useless query will guarantee that the previous flush committed before we close the program.
262
+
# This one last useless query will guarantee that the previous flush committed before we close
263
+
# the program.
268
264
sqlLock.acquire()
269
265
sqlSubmitQueue.put('SELECT address FROM subscriptions')
270
266
sqlSubmitQueue.put('')
271
267
sqlReturnQueue.get()
272
268
sqlSubmitQueue.put('exit')
273
269
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.
270
+
logger.info('Finished flushing inventory.')
271
+
# Wait long enough to guarantee that any running proof of work worker threads will check the
272
+
# 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.
279
+
# When you want to command a sendDataThread to do something, like shutdown or send some data, this
280
+
# function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are
281
+
# responsible for putting their queue into (and out of) the sendDataQueues list.
0 commit comments