Ver Fonte

Kill some old debug code.

Adam Ierymenko há 8 anos atrás
pai
commit
fa2bb91ae5
2 ficheiros alterados com 1 adições e 5 exclusões
  1. 1 4
      node/Topology.cpp
  2. 0 1
      node/Utils.cpp

+ 1 - 4
node/Topology.cpp

@@ -128,10 +128,7 @@ SharedPtr<Peer> Topology::getPeer(const Address &zta)
 				return ap;
 			}
 		}
-	} catch ( ... ) {
-		fprintf(stderr,"EXCEPTION in getPeer() part 2\n");
-		abort();
-	} // invalid identity on disk?
+	} catch ( ... ) {} // invalid identity on disk?
 
 	return SharedPtr<Peer>();
 }

+ 0 - 1
node/Utils.cpp

@@ -248,7 +248,6 @@ unsigned int Utils::snprintf(char *buf,unsigned int len,const char *fmt,...)
 	if ((n >= (int)len)||(n < 0)) {
 		if (len)
 			buf[len - 1] = (char)0;
-		abort();
 		throw std::length_error("buf[] overflow in Utils::snprintf");
 	}