Refactor Loop::defaultLoop() to Loop::get(), never use "default loops".

This commit is contained in:
Alex Hultman
2019-03-02 03:04:07 +01:00
parent 6801ab8969
commit b1de3a5135
3 changed files with 11 additions and 30 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ public:
return;
/* Dynamically hook us up with the Loop post handler */
Loop::defaultLoop()->addPostHandler([this](Loop *loop) {
Loop::get()->addPostHandler([this](Loop *loop) {
if (!pubNodes.size()) {
return;