mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(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
This commit is contained in:
parent
50ce608163
commit
927ba021cc
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
|
||||
#include <objects/Connection.h>
|
||||
#include <objects/Proxy.h>
|
||||
#include "first-server.h"
|
||||
#include <objects/String.h>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue