forked from Ocean/datum_gateway
fix inconsistent protocol thread state on error, issue #40
This commit is contained in:
parent
665aa78795
commit
2bbf8c6621
@ -1498,6 +1498,7 @@ void *datum_protocol_client(void *args) {
|
|||||||
|
|
||||||
if ((ret = getaddrinfo(datum_config.datum_pool_host, port_str, &hints, &res)) != 0) {
|
if ((ret = getaddrinfo(datum_config.datum_pool_host, port_str, &hints, &res)) != 0) {
|
||||||
DLOG_ERROR("getaddrinfo: %s\n", gai_strerror(ret));
|
DLOG_ERROR("getaddrinfo: %s\n", gai_strerror(ret));
|
||||||
|
datum_protocol_client_active = 0;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user