calibre: use local callback for willRerunWhenConnected (#14998)

`self.re` isn't assigned until later in connect() (line 292), so at line
244 it is always nil — either never set, or cleared by a previous
disconnect(). This caused willRerunWhenConnected to receive nil as its
callback, so after Wi-Fi was brought up the coroutine was never resumed
and the Calibre connection silently died.

Use the local `re` (defined on line 234) which is the correct resume
callback for this coroutine.
This commit is contained in:
Min S. Kim authored and GitHub committed 2026-02-17 19:06:36 +01:00
1 parent d8fc84240e
commit cffae09d50
1 file changed
+1 -1
+1 -1
View File
@@ -241,7 +241,7 @@ function CalibreWireless:connect()
end
-- Ensure network is online.
if NetworkMgr:willRerunWhenConnected(self.re) then
if NetworkMgr:willRerunWhenConnected(re) then
coroutine.yield()
if not NetworkMgr:isConnected() then
return