mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Calibre: Log errors on wireless connection failures (#9914)
Also, get rid of the weird and clunky `failed_connect_callback` thingy, because it makes no sense? Re: #9908
This commit is contained in:
@@ -17,7 +17,7 @@ function StreamMessageQueue:start()
|
||||
self.socket = czmq.zsocket_new(self.context, C.ZMQ_STREAM)
|
||||
self.poller = czmq.zpoller_new(self.socket, nil)
|
||||
local endpoint = string.format("tcp://%s:%d", self.host, self.port)
|
||||
logger.warn("connect to endpoint", endpoint)
|
||||
logger.dbg("connecting to endpoint", endpoint)
|
||||
local rc = czmq.zsocket_connect(self.socket, endpoint)
|
||||
if rc ~= 0 then
|
||||
error("cannot connect to " .. endpoint)
|
||||
|
||||
Reference in New Issue
Block a user