Browse Source

Don't query plugins in dev mode.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
f79cff0784
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/plugin.cpp

+ 6
- 4
src/plugin.cpp View File

@@ -278,10 +278,12 @@ void init() {
}

// Sync in a detached thread
std::thread t([] {
queryUpdates();
});
t.detach();
if (!settings::devMode) {
std::thread t([] {
queryUpdates();
});
t.detach();
}
}

void destroy() {


Loading…
Cancel
Save