Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <syershov@maps.me>2016-12-14 17:41:41 +0300
committerSergey Yershov <syershov@maps.me>2016-12-14 17:41:41 +0300
commitee087914bb9426825635d8ef7d8bf5feebc80a79 (patch)
tree461ffdcc7aa6778600d6b04720f99ed0079465a5 /tracking/connection.cpp
parentc290c9ee9ee9a0368d35fecc5ef30f63d7c4554b (diff)
Disable sending point in background
Diffstat (limited to 'tracking/connection.cpp')
-rw-r--r--tracking/connection.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tracking/connection.cpp b/tracking/connection.cpp
index 1042457e60..15e6750041 100644
--- a/tracking/connection.cpp
+++ b/tracking/connection.cpp
@@ -46,6 +46,14 @@ bool Connection::Reconnect()
return true;
}
+void Connection::Shutdown()
+{
+ if (!m_socket)
+ return;
+
+ m_socket->Close();
+}
+
// TODO: implement historical
bool Connection::Send(boost::circular_buffer<DataPoint> const & points)
{