Pixels can no longer be added to a MaxSizeList if the list is full.

This commit is contained in:
CodePanter 2016-04-28 20:24:37 +02:00
parent b638c79461
commit f22e3a2a56
2 changed files with 2 additions and 2 deletions

View file

@ -290,9 +290,9 @@ class MaxSizeList(list):
def append(self, item):
"""Appends an item to the list"""
super(MaxSizeList, self).append(item)
if self.__len__() == self.maxsize:
raise IndexError('max size reached')
super(MaxSizeList, self).append(item)
def RunServer():
"""Runs a pixelvloed server"""