bitcoin/bitcoin — pull request #2840 by sipa (2013-07-20 12:36:39+00:00)
Title: Allow SendMessages to run partially without cs_main

SendMessages() tries to acquire a cs_main lock now, but this isn't nessecary for much of its functionality. Move those parts out of the if condition.