Just a small fix.
This commit is contained in:
parent
b2e93ba241
commit
929b650a72
1 changed files with 0 additions and 2 deletions
|
|
@ -29,14 +29,12 @@ class TcpconnectService(Service):
|
|||
except socket.error, msg:
|
||||
#log.w("%s\n" % msg[1])
|
||||
self.errorcode = 1
|
||||
print(self.errorcode)
|
||||
|
||||
try:
|
||||
sock.connect((host, self.port))
|
||||
except socket.error, msg:
|
||||
#log.w("%s\n" % msg[1])
|
||||
self.errorcode = 2
|
||||
print(self.errorcode)
|
||||
|
||||
print(self.errorcode)
|
||||
sock.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue