Make Snapshot Synchronous
This commit is contained in:
@@ -31,7 +31,7 @@ std::string WatchBotRecorder::Snapshot(ctpl::thread_pool* pThreadPool)
|
||||
|
||||
Http::HttpClient* pHttpClient = m_pHttpClient;
|
||||
Settings settings = m_settings;
|
||||
pThreadPool->push( [pHttpClient, settings, dateTimeString](int) { WatchBotRecorder::Snapshots(pHttpClient, settings, dateTimeString, 1); } );
|
||||
WatchBotRecorder::Snapshots(pHttpClient, settings, dateTimeString, 1);
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user