We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7319060 commit 56e5d9fCopy full SHA for 56e5d9f
1 file changed
src/libstore/filetransfer.cc
@@ -780,6 +780,9 @@ struct curlFileTransfer : public FileTransfer
780
781
void workerThreadMain()
782
{
783
+ /* NOTE(cole-h): the maxQueueSize needs to be >0 or else things will hang */
784
+ assert(maxQueueSize > 0);
785
+
786
/* Cause this thread to be notified on SIGINT. */
787
#ifndef _WIN32 // TODO need graceful async exit support on Windows?
788
auto callback = createInterruptCallback([&]() { stopWorkerThread(); });
0 commit comments