@@ -38,6 +38,7 @@ class Smtp {
try {
cnx.connect(new Host(host),port);
}catch( e : Dynamic ){
+ cnx.close();
throw ConnectionError(host,port);
}
@@ -97,6 +97,7 @@ class Connection {
try{
cnx.connect( new neko.net.Host(host), port );
debug("socket connected");