Closed FireyFly closed 10 years ago
Via Zetro on IRC: the issue is that connections
in lightgames.Game is static, which it of course shouldn't be. This is a fault in my understanding of static vs. instance variables in Python. Will push a fix soon.
For some weird reason, sometimes when switching games closed sockets seem to be lying around in
self.connections
and thus cause an error whendestroy
is invoked.This is weird, because amongst others it seems to happen for the 'Paint' game, which overrides
on_connect
, so no sockets should be added to this list in the first place... further investigation is needed.