Maybe I’m doing it wrong, but if I specify “-noconnect” in an attempt to have bitcoin-qt not connect to any peers, the ThreadOpenConnections2() function goes into a tight loop that runs forever.
The following 1-line change fixes the problem:
0diff --git a/src/net.cpp b/src/net.cpp
1index e10829a..fe1712a 100644
2--- a/src/net.cpp
3+++ b/src/net.cpp
4@@ -1367,7 +1367,7 @@ void ThreadOpenConnections2(void* parg)
5 printf("ThreadOpenConnections started\n");
6
7 // Connect to specific addresses
8- if (mapArgs.count("-connect"))
9+ if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size())
10 {
11 for (int64 nLoop = 0;; nLoop++)
12 {