Show More
@@ -260,7 +260,9 b' def checkportisavailable(port):' | |||
|
260 | 260 | s.bind(('localhost', port)) |
|
261 | 261 | return True |
|
262 | 262 | except socket.error as exc: |
|
263 | if exc.errno not in ( | |
|
263 | if os.name == 'nt' and exc.errno == errno.WSAEACCES: | |
|
264 | return False | |
|
265 | elif exc.errno not in ( | |
|
264 | 266 | errno.EADDRINUSE, |
|
265 | 267 | errno.EADDRNOTAVAIL, |
|
266 | 268 | errno.EPROTONOSUPPORT, |
General Comments 0
You need to be logged in to leave comments.
Login now