Commit a5e69e05 authored by 曾思程's avatar 曾思程

解决设置tryconnect不重连的情况下,尝试重连还会触发onconnect问题

parent 5b6815d5
......@@ -117,7 +117,7 @@ function Jensen(log) {
ready = true;
Logger.debug('jensen', 'setup', 'setup webusb connection');
try {
self.onconnect?.();
if (!disableOnConnect) self.onconnect?.();
} catch (err) {
Logger.error('jensen', 'setup', err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment