Commit 81a7886
authored
Move set_bind to before_serving hook and add close (#10)
Engine set_bind was in a before_first_request hook, and the engine was
never closed. Moved the set_bind to a before_serving hook, and added a
pop_bind/close to an after_serving hook.
This also makes it easier to properly initialize engine in custom cli
commands.1 parent 3bef4cb commit 81a7886
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
0 commit comments