diff options
-rw-r--r-- | examples/repeater.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/repeater.c b/examples/repeater.c index ae65e25..cf0350f 100644 --- a/examples/repeater.c +++ b/examples/repeater.c @@ -2,6 +2,11 @@ #include <rfb/rfb.h> +static void clientGone(rfbClientPtr cl) +{ + rfbShutdownServer(cl->screen, TRUE); +} + int main(int argc,char** argv) { char *repeaterHost; @@ -53,6 +58,7 @@ int main(int argc,char** argv) return 1; } cl->reverseConnection = 0; + cl->clientGoneHook = clientGone; /* Run the server */ rfbInitServer(server); |