Client.onend: Anticipate that the HTTP parser object is uninitialized when the client setup failed.
This commit is contained in:
Родитель
d9fbb8a580
Коммит
4b19bd2896
|
@ -916,7 +916,7 @@ function Client ( ) {
|
|||
});
|
||||
|
||||
self.onend = function () {
|
||||
parser.finish();
|
||||
if (parser) parser.finish();
|
||||
debug("self got end closing. readyState = " + self.readyState);
|
||||
self.end();
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче