diff options
| author | João Barbosa <[email protected]> | 2015-11-01 18:09:17 +0000 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2015-11-04 10:36:00 +0000 |
| commit | de0499d3b8352334357c8d60931cd5d2be5ab61d (patch) | |
| tree | debaa2e8f9671650860d827cedbdac27ca79b243 /src/init.cpp | |
| parent | qt: translation update prior to opening 0.12 translations (diff) | |
| download | discoin-de0499d3b8352334357c8d60931cd5d2be5ab61d.tar.xz discoin-de0499d3b8352334357c8d60931cd5d2be5ab61d.zip | |
Fix ZMQ Notification initialization and shutdown
Moves the call Initialize() from init.cpp to CreateWithArguments() and handles the
return value. Moves the call Shutdown() from init.cpp to destructor.
Changes Initialize() and Shutdown() to protected members.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 76adca769..3e7381b82 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -222,7 +222,6 @@ void Shutdown() #if ENABLE_ZMQ if (pzmqNotificationInterface) { UnregisterValidationInterface(pzmqNotificationInterface); - pzmqNotificationInterface->Shutdown(); delete pzmqNotificationInterface; pzmqNotificationInterface = NULL; } @@ -1176,7 +1175,6 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) pzmqNotificationInterface = CZMQNotificationInterface::CreateWithArguments(mapArgs); if (pzmqNotificationInterface) { - pzmqNotificationInterface->Initialize(); RegisterValidationInterface(pzmqNotificationInterface); } #endif |