mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
api: websocket init timeout
This commit is contained in:
parent
4933577dae
commit
5ace2bf0e4
1 changed files with 2 additions and 2 deletions
|
@ -210,8 +210,8 @@ router.ws('/connect', async (ws, req) => {
|
|||
|
||||
setTimeout(()=>{
|
||||
//Terminate the socket after 1 second, if not initialized.
|
||||
//if(job === null)
|
||||
// ws.close(4001, "Initialization Timeout");
|
||||
if(job === null)
|
||||
ws.close(4001, "Initialization Timeout");
|
||||
}, 1000)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue