Fix a bug where Metacube streams would become inconsistent between different servers...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:00:02 +0000 (14:00 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 12:00:02 +0000 (14:00 +0200)
main.cpp

index c89ec72..0aa91f3 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -153,9 +153,9 @@ void create_streams(const Config &config,
                                            Stream::Encoding(stream_config.encoding));
                } else {
                        servers->set_backlog_size(stream_config.stream_id, stream_config.backlog_size);
-                       servers->set_encoding(stream_config.stream_id,
-                                             Stream::Encoding(stream_config.encoding));
                }
+               servers->set_encoding(stream_config.stream_id,
+                                     Stream::Encoding(stream_config.encoding));
                expecting_stream_ids.erase(stream_config.stream_id);
 
                if (stream_config.mark_pool != -1) {