From a97ec21a1cde900e19400e57d05abb89a018471a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 12 Oct 2010 00:25:54 +0200 Subject: [PATCH] Use Socket::eof for detecting close --- libcore/asobj/XMLSocket_as.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcore/asobj/XMLSocket_as.cpp b/libcore/asobj/XMLSocket_as.cpp index e4b41d45a..3951ce36c 100644 --- a/libcore/asobj/XMLSocket_as.cpp +++ b/libcore/asobj/XMLSocket_as.cpp @@ -253,7 +253,7 @@ XMLSocket_as::checkForIncomingData() callMethod(&owner(), NSV::PROP_ON_DATA, *it); } - if (_socket.bad()) { + if (_socket.eof()) { callMethod(&owner(), NSV::PROP_ON_CLOSE); close(); return; -- 2.11.4.GIT