diff options
Diffstat (limited to 'src/server.cc')
-rw-r--r-- | src/server.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.cc b/src/server.cc index 34f0b30..2ecb4be 100644 --- a/src/server.cc +++ b/src/server.cc @@ -119,12 +119,12 @@ void newConnection(Socket *socket, Info *info) frame = new Frame(NULL, DVPACKAGE_SIZE); } - // TODO: Use save state - info->info("Closing connection..."); // No encoder exists, if this is a pure snapshot (image) connection. if(enc) { + enc->setSaveState(savestate); + // Send end of stream frame. frame->endOfFrameStream = true; enc->encode(frame); |