watch out for an already closed socket in connect (meterpreter session, etc)

git-svn-id: file:///home/svn/framework3/trunk@6161 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2009-01-18 01:21:42 +00:00
parent 17f4396d1d
commit a595def093
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ class Core
n2c.kill
end
sock.close
sock.close if not sock.closed?
infile.close if infile
true