diff options
Diffstat (limited to 'server/main_channel.c')
-rw-r--r-- | server/main_channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/main_channel.c b/server/main_channel.c index e793e489..43c0f3f2 100644 --- a/server/main_channel.c +++ b/server/main_channel.c @@ -155,6 +155,11 @@ enum NetTestStage { NET_TEST_STAGE_RATE, }; +int main_channel_is_connected(MainChannel *main_chan) +{ + return red_channel_is_connected(&main_chan->base); +} + // when disconnection occurs, let reds shutdown all channels. This will trigger the // real disconnection of main channel static void main_channel_client_on_disconnect(RedChannelClient *rcc) |