Commit 0ca33d1
committed
fix(native): make MySQL connection check immediate on first attempt
The waitForMySQL function was timing out before making any connection
attempt when using short timeouts (500ms). The ticker waits 500ms before
the first tick, at which point a 500ms timeout would already be expired.
This fix adds an immediate connection attempt before entering the ticker
loop, ensuring that at least one connection attempt is made even with
short timeouts.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 67e865b commit 0ca33d1
1 file changed
+19
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
| |||
175 | 180 | | |
176 | 181 | | |
177 | 182 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 183 | + | |
189 | 184 | | |
190 | | - | |
191 | 185 | | |
192 | 186 | | |
193 | | - | |
194 | 187 | | |
195 | 188 | | |
196 | 189 | | |
197 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
0 commit comments