diff options
author | deva <deva> | 2005-10-07 21:17:13 +0000 |
---|---|---|
committer | deva <deva> | 2005-10-07 21:17:13 +0000 |
commit | 8437a0c200ddbde70d64884f42dcff651749b066 (patch) | |
tree | 44127aa4dcd0523a56dd06e9d9c3a17534e8b6e6 /src/server.cc | |
parent | 94c52bd15e64830db905522294a1975ed7a1cc39 (diff) |
*** empty log message ***
Diffstat (limited to 'src/server.cc')
-rw-r--r-- | src/server.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/server.cc b/src/server.cc index 4d556fc..29571d6 100644 --- a/src/server.cc +++ b/src/server.cc @@ -120,11 +120,13 @@ void newConnection(Socket *socket, Info *info) info->info("Closing connection..."); - // Send end of stream frame. - frame->endOfFrameStream = true; - enc->encode(frame); - - if(enc) delete enc; + // No encoder exists, if this is a pure snapshot (image) connection. + if(enc) { + // Send end of stream frame. + frame->endOfFrameStream = true; + enc->encode(frame); + delete enc; + } info->info("CONNECTION CLOSED"); } |