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:
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)
{