Commit 531e7321 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

connection closing is signalled with the end of stream number (-1)


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 1a254479
...@@ -1562,7 +1562,7 @@ public class MainController { ...@@ -1562,7 +1562,7 @@ public class MainController {
if (error_flag) { if (error_flag) {
send_error_str(hc.socket, "The received message was not understood by the MC."); send_error_str(hc.socket, "The received message was not understood by the MC.");
} }
} else if (recv_len == 0) { } else if (recv_len == -1) {
if (hc.hc_state == hc_state_enum.HC_EXITING) { if (hc.hc_state == hc_state_enum.HC_EXITING) {
close_hc_connection(hc); close_hc_connection(hc);
if (mc_state == mcStateEnum.MC_SHUTDOWN && all_hc_in_state(hc_state_enum.HC_DOWN)) { if (mc_state == mcStateEnum.MC_SHUTDOWN && all_hc_in_state(hc_state_enum.HC_DOWN)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment