the forums at degreez.net http://forums.degreez.net/ |
|
SocketHandler.py - should self.servers be set to {} in init? http://forums.degreez.net/viewtopic.php?f=4&t=4131 |
Page 1 of 1 |
Author: | TimTucker [ Sat Jan 15, 2005 4:18 pm ] |
Post subject: | SocketHandler.py - should self.servers be set to {} in init? |
Looking at SocketHandler.py, if shutdown() is called without binding to a port, it'll throw an exception because self.servers hasn't been initialized yet, since it's only initialized in Bind(). Including: Code: self.servers = {}
in _init_ would solve the problem. (everything else that's referenced in shutdown is already in _init_, so why not self.servers?) |
Page 1 of 1 | All times are UTC - 7 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |