From 6f79b2eaeb9c559abefe7b33560a36a0e6cf4bbd Mon Sep 17 00:00:00 2001
From: howard-stearns <howard.stearns@gmail.com>
Date: Tue, 4 Apr 2017 12:05:43 -0700
Subject: [PATCH] send initial path in location update (e.g., on login)

---
 interface/src/DiscoverabilityManager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/src/DiscoverabilityManager.cpp b/interface/src/DiscoverabilityManager.cpp
index f042330a46..98bfa9c0c7 100644
--- a/interface/src/DiscoverabilityManager.cpp
+++ b/interface/src/DiscoverabilityManager.cpp
@@ -54,7 +54,7 @@ void DiscoverabilityManager::updateLocation() {
         const QString CONNECTED_KEY_IN_LOCATION = "connected";
         locationObject.insert(CONNECTED_KEY_IN_LOCATION, discoverable && domainHandler.isConnected());
 
-        if (discoverable) { // Don't consider changes to these as update-worthy if we're not discoverable.
+        if (discoverable || _lastLocationObject.isEmpty()) { // Don't consider changes to these as update-worthy if we're not discoverable.
             const QString PATH_KEY_IN_LOCATION = "path";
             locationObject.insert(PATH_KEY_IN_LOCATION, pathString);