Commit 1c86eb6
committed
in_sql: add nil guard in shutdown
`@thread` is assigned only on the last line of `#start`,
so any shutdown that runs on an instance whose `#start` never reached that line calls `@thread.join` on nil and raises "undefined method `join' for nil:NilClass".
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>1 parent f7b106c commit 1c86eb6
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
| |||
0 commit comments