summaryrefslogtreecommitdiffstats
path: root/server/red_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/red_channel.c')
-rw-r--r--server/red_channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index be861fdd..cab56a0d 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -571,6 +571,11 @@ static PipeItem *red_channel_pipe_get(RedChannel *channel)
return item;
}
+int red_channel_is_connected(RedChannel *channel)
+{
+ return !!channel->peer;
+}
+
static void red_channel_pipe_clear(RedChannel *channel)
{
PipeItem *item;