mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-19 06:19:34 +08:00
fixed bug of server_clear_function called at client side
This commit is contained in:
parent
513bed7382
commit
000fa673ed
@ -305,9 +305,16 @@ struct conn_info_t //stores info for a raw connection.for client ,there is o
|
|||||||
address_t addr;//only used for server
|
address_t addr;//only used for server
|
||||||
|
|
||||||
conn_info_t()
|
conn_info_t()
|
||||||
|
{
|
||||||
|
if(program_mode==server_mode)
|
||||||
{
|
{
|
||||||
conv_manager.s.additional_clear_function=server_clear_function;
|
conv_manager.s.additional_clear_function=server_clear_function;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
assert(program_mode==client_mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
~conn_info_t()
|
~conn_info_t()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user