| 123 | | for thread_ident, i in self.seen_threads.iteritems(): |
|---|
| 124 | | for func in self.on_stop_thread_list: |
|---|
| 125 | | func(i) |
|---|
| 126 | | self.seen_threads.clear() |
|---|
| 127 | | |
|---|
| 128 | | for func in self.on_stop_server_list: |
|---|
| 129 | | func() |
|---|
| 130 | | |
|---|
| 131 | | self.state = STOPPED |
|---|
| 132 | | cherrypy.log("CherryPy shut down", "ENGINE") |
|---|
| | 123 | if self.state != STOPPED: |
|---|
| | 124 | for thread_ident, i in self.seen_threads.iteritems(): |
|---|
| | 125 | for func in self.on_stop_thread_list: |
|---|
| | 126 | func(i) |
|---|
| | 127 | self.seen_threads.clear() |
|---|
| | 128 | |
|---|
| | 129 | for func in self.on_stop_server_list: |
|---|
| | 130 | func() |
|---|
| | 131 | |
|---|
| | 132 | self.state = STOPPED |
|---|
| | 133 | cherrypy.log("CherryPy shut down", "ENGINE") |
|---|