From 41d2c2294303c75f63abc1bf15e4d44a2fd9e4ac Mon Sep 17 00:00:00 2001 From: wangrong Date: Mon, 2 Nov 2020 21:54:46 +0800 Subject: [PATCH] Debug:if socket error we should return directly --- src/anbox/qemu/pipe_connection_creator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anbox/qemu/pipe_connection_creator.cpp b/src/anbox/qemu/pipe_connection_creator.cpp index 722b227..6f06253 100644 --- a/src/anbox/qemu/pipe_connection_creator.cpp +++ b/src/anbox/qemu/pipe_connection_creator.cpp @@ -101,7 +101,7 @@ PipeConnectionCreator::client_type PipeConnectionCreator::identify_client( for (;;) { unsigned char byte[1] = {0}; const auto err = messenger->receive_msg(ba::buffer(byte, 1)); - if (err) break; + if (err) return client_type::invalid; buffer.push_back(byte[0]); if (byte[0] == 0x0) break; } -- Gitee