arRPC: increase connection timeout to 5s (#3680)
Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
parent
f040133412
commit
8943c90cb0
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ export default definePlugin({
|
|||
|
||||
ws.onmessage = this.handleEvent;
|
||||
|
||||
const connectionSuccessful = await new Promise(res => setTimeout(() => res(ws.readyState === WebSocket.OPEN), 1000)); // check if open after 1s
|
||||
const connectionSuccessful = await new Promise(res => setTimeout(() => res(ws.readyState === WebSocket.OPEN), 5000)); // check if open after 5s
|
||||
if (!connectionSuccessful) {
|
||||
showNotice("Failed to connect to arRPC, is it running?", "Retry", () => { // show notice about failure to connect, with retry/ignore
|
||||
popNotice();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue