| 106 | | for thread_ident, i in self.seen_threads.iteritems(): |
|---|
| 107 | | for func in self.on_stop_thread_list: |
|---|
| 108 | | func(i) |
|---|
| 109 | | self.seen_threads.clear() |
|---|
| 110 | | |
|---|
| 111 | | for func in self.on_stop_engine_list: |
|---|
| 112 | | func() |
|---|
| 113 | | |
|---|
| 114 | | self.state = STOPPED |
|---|
| 115 | | cherrypy.log("CherryPy shut down", "ENGINE") |
|---|
| | 106 | if self.state != STOPPED: |
|---|
| | 107 | for thread_ident, i in self.seen_threads.iteritems(): |
|---|
| | 108 | for func in self.on_stop_thread_list: |
|---|
| | 109 | func(i) |
|---|
| | 110 | self.seen_threads.clear() |
|---|
| | 111 | |
|---|
| | 112 | for func in self.on_stop_engine_list: |
|---|
| | 113 | func() |
|---|
| | 114 | |
|---|
| | 115 | self.state = STOPPED |
|---|
| | 116 | cherrypy.log("CherryPy shut down", "ENGINE") |
|---|