summaryrefslogtreecommitdiff
path: root/src/here/here_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/here/here_api.cpp')
-rwxr-xr-xsrc/here/here_api.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/here/here_api.cpp b/src/here/here_api.cpp
index 94de668..9de2ef9 100755
--- a/src/here/here_api.cpp
+++ b/src/here/here_api.cpp
@@ -22,7 +22,6 @@
#include "here_route.h"
#include <common/HereConfig.h>
-
using namespace HERE_PLUGIN_NAMESPACE_PREFIX;
int HerePluginInit(maps_plugin_h *hPlugin)
@@ -30,6 +29,10 @@ int HerePluginInit(maps_plugin_h *hPlugin)
if (!hPlugin)
return HERE_ERROR_INVALID_PARAMETER;
+ here_error_e error = HereManager::CheckAgreement();
+ if (error != HERE_ERROR_NONE)
+ return error;
+
HereManager::Create();
if (!HereManager::GetHandler())
@@ -46,10 +49,7 @@ int HerePluginShutdown(maps_plugin_h hPlugin)
return HERE_ERROR_INVALID_PARAMETER;
if (HereManager::GetHandler())
- {
- HereManager::GetHandler()->TerminateAllServices();
HereManager::GetHandler()->Close();
- }
return HERE_ERROR_NONE;
}