diff --git a/src/plugins/httpdatastream/HttpDataStream.cpp b/src/plugins/httpdatastream/HttpDataStream.cpp index b08978c25..6d28acc40 100755 --- a/src/plugins/httpdatastream/HttpDataStream.cpp +++ b/src/plugins/httpdatastream/HttpDataStream.cpp @@ -76,7 +76,7 @@ static IEnvironment* environment; static LruDiskCache diskCache; static std::string cachePath; static IPreferences* prefs; -static std::atomic nextInstanceId = duration_cast(system_clock::now().time_since_epoch()).count(); +static std::atomic nextInstanceId(duration_cast(system_clock::now().time_since_epoch()).count()); static const int kDefaultMaxCacheFiles = 35; static const int kDefaultPreCacheSizeBytes = 524288; /*2^19 */