diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-02-11 16:30:47 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-02-11 16:30:47 +0000 |
commit | a8a619f078f543b56e8ae785d92844b806444195 (patch) | |
tree | dad2b77637d2e5aad0e592eefa8ff57a0a5b1557 /FaceTrackNoIR/FGServer.cpp | |
parent | 43420d828647b026a315c58db621202fc5a17403 (diff) |
Some more work on the Client/Server protocol.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@50 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FGServer.cpp')
-rw-r--r-- | FaceTrackNoIR/FGServer.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/FaceTrackNoIR/FGServer.cpp b/FaceTrackNoIR/FGServer.cpp index 292c194b..66cc1d5d 100644 --- a/FaceTrackNoIR/FGServer.cpp +++ b/FaceTrackNoIR/FGServer.cpp @@ -46,11 +46,15 @@ FGServer::FGServer( Tracker *parent ) { /** destructor **/
FGServer::~FGServer() {
- inSocket->close();
- outSocket->close();
-
- delete inSocket;
- delete outSocket;
+ if (inSocket != 0) {
+ inSocket->close();
+ delete inSocket;
+ }
+
+ if (outSocket != 0) {
+ outSocket->close();
+ delete outSocket;
+ }
}
//
|