From 961ca247405f7efb0b087e591fb5df6f8b4f3354 Mon Sep 17 00:00:00 2001 From: Andrew McCallum Date: Wed, 6 Mar 1996 14:46:39 +0000 Subject: [PATCH] (main): Before exit, invalidate the connection, not the proxy. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1076 72102866-910b-0410-8b05-ffd578937521 --- Examples/first-client.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/first-client.m b/Examples/first-client.m index 0d1a7bd6b..5d2e8ec3d 100644 --- a/Examples/first-client.m +++ b/Examples/first-client.m @@ -1,5 +1,6 @@ #include +#include #include "first-server.h" #include @@ -30,7 +31,9 @@ int main(int argc, char *argv[]) printf("Shutting down my connection to the server\n"); - [s invalidate]; + [[s connectionForProxy] invalidate]; + /* Although this isn't strictly necessary. The server will recognize + that we are gone, and handle it, if we just exit (or if we crash). */ exit(0); }