Commit d99c972
fix: close port when connect fails
This fixes a bug where the serial port is not closed when the connect
fails. This can cause the port to be left open and unusable.
This occurs when esptool is used as a module and detect_chip is called.
Closes espressif#10441 parent 12095b2 commit d99c972
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
741 | 741 | | |
742 | 742 | | |
743 | 743 | | |
| |||
0 commit comments