alex / alchimia

MIT License
102 stars 22 forks source link

add __del__ everywhere #42

Open glyph opened 6 years ago

glyph commented 6 years ago

Pretty much every object in alchimia.engine manages some state:

TwistedEngine and TwistedConnection are particularly problematic because the worker thread created behind the scenes is its own strong-reference root and will never be cleaned up during the lifetime of the process if these objects do not shut them down.

As seen in #30 , leaking these types of resources can give one the impression that the whole system is just freezing for no reason.