mirror of https://github.com/svaarala/duktape.git
Browse Source
NULL all debugger transport I/O callbacks (i.e. callbacks other than detaching_cb) whenever the transport indicates an error has occurred. By the API contract we're not allowed to call any of them after transport read/write error so it's safest to NULL them all on a transport error. This is not strictly necessary because only the write_cb is used by detach1() currently before NULLing the callbacks anyway. However, NULLing them early on transport error ensures there's no potential to call them incorrectly even when the code is reorganized later.pull/599/head
Sami Vaarala
9 years ago
1 changed files with 18 additions and 2 deletions
Loading…
Reference in new issue