Merge pull request #66 from VE-FORBRYDERNE/patch

Set eventlet threadpool size back to 1
This commit is contained in:
henk717 2022-01-20 08:31:53 +01:00 committed by GitHub
commit c25e2a33f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import eventlet
eventlet.monkey_patch(all=True, thread=False)
import os
os.system("")
os.environ['EVENTLET_THREADPOOL_SIZE'] = '50'
os.environ['EVENTLET_THREADPOOL_SIZE'] = '1'
from eventlet import tpool
from os import path, getcwd
@ -3559,6 +3559,7 @@ def commitwi(ar):
#==================================================================#
def deletewi(uid):
if(uid in vars.worldinfo_u):
setgamesaved(False)
# Store UID of deletion request
vars.deletewi = uid
if(vars.deletewi is not None):
@ -3584,6 +3585,7 @@ def deletewifolder(uid):
del vars.wifolders_u[uid]
del vars.wifolders_d[uid]
del vars.wifolders_l[vars.wifolders_l.index(uid)]
setgamesaved(False)
# Delete uninitialized entries in the folder we're going to delete
vars.worldinfo = [wi for wi in vars.worldinfo if wi["folder"] != uid or wi["init"]]
vars.worldinfo_i = [wi for wi in vars.worldinfo if wi["init"]]