Commit a5c1dd7
fix: delete orphaned onion service on concurrent start race
If two goroutines raced through Start(), the losing goroutine would
close the control connection but leave an orphaned hidden service
on the Tor daemon. Now we call DelOnion before closing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent fb3245f commit a5c1dd7
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
0 commit comments