From 000fa673edc133912bc53ba2c138e1df7f62b618 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Sat, 4 Aug 2018 10:57:08 -0500 Subject: [PATCH] fixed bug of server_clear_function called at client side --- connection.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/connection.h b/connection.h index 1a31b04..c62d1dd 100644 --- a/connection.h +++ b/connection.h @@ -306,7 +306,14 @@ struct conn_info_t //stores info for a raw connection.for client ,there is o conn_info_t() { - conv_manager.s.additional_clear_function=server_clear_function; + if(program_mode==server_mode) + { + conv_manager.s.additional_clear_function=server_clear_function; + } + else + { + assert(program_mode==client_mode); + } } ~conn_info_t()