Fix crash on windows

This commit is contained in:
noisyfox 2017-01-07 19:34:39 +11:00
parent 0bf1e46ace
commit f05bea4e10

View file

@ -198,8 +198,13 @@ class TransferBase(object):
db_instance = obj()
ServerPool.get_instance()
shell.log_shadowsocks_version()
try:
import resource
logging.info('current process RLIMIT_NOFILE resource: soft %d hard %d' % resource.getrlimit(resource.RLIMIT_NOFILE))
except:
pass
try:
while True:
load_config()