search for: basemanager

Displaying 1 result from an estimated 1 matches for "basemanager".

Did you mean: casemanager
2014 Feb 12
0
pyAsterisk: how to gracefully exit from event loop
...g a Tkinter-based GUI so I've dedicated a thread for reading incoming AMI events. Which is the preferred way to gracefully exit from an event loop ? More precisely: This thread is waiting for input events with Manager._read_packet() method. Doc (see [1]) says: "... infinite loop running BaseManager.read() until an exception occurs (for example, SystemExit is raised) or until sys.exit() is called" The best method I could find is to close Manager connection and catch exception. Any advice ? Regards [1] http://py-asterisk.googlecode.com/hg-history/242456f432f2fa2727b26d648bcf7dc502fd...