Commit f52c27d
committed
Use try/finally in close_session to guarantee state cleanup
If driver.quit() throws, state.drivers, state.bidi, and
state.currentSession are now still cleaned up via the finally block.
Outer try/catch preserved for MCP error response pattern.1 parent 2805245 commit f52c27d
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
588 | 591 | | |
589 | 592 | | |
590 | 593 | | |
| |||
0 commit comments