There's a bug for this and I'll try and get a fix in soon. It shouldn't be too hard - although having said that the Unlink doesn't say which socket has closed, so it could still cause problems.
You could check if sockets are closing by doing something like:
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's a bug for this and I'll try and get a fix in soon. It shouldn't be too hard - although having said that the
Unlink
doesn't say which socket has closed, so it could still cause problems.You could check if sockets are closing by doing something like:
As a stop-gap you could do something similar to make sure you don't fire off multiple requests at once I guess.