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:
diff --git a/src/net.cpp b/src/net.cpp
index e10829a..fe1712a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1367,7 +1367,7 @@ void ThreadOpenConnections2(void* parg)
printf("ThreadOpenConnections started\n");
// Connect to specific addresses
- if (mapArgs.count("-connect"))
+ if (mapArgs.count("-connect") && mapMultiArgs["-connect"].size())
{
for (int64 nLoop = 0;; nLoop++)
{