Fix server-side disconnect bug

This commit is contained in:
Joscha 2017-04-13 21:04:09 +00:00
parent 320dd16889
commit 04f0b8d9d7
2 changed files with 5 additions and 3 deletions

View file

@ -211,7 +211,8 @@ class Map():
#self.load_visible()
def apply_changes(self, changes):
self.chunkpool.apply_changes(changes)
with self.chunkpool as pool:
pool.apply_changes(changes)
ChunkStyle = namedtuple("ChunkStyle", "string color")