Fixing a bug in updating local prefix
diff --git a/src/contactpanel.cpp b/src/contactpanel.cpp
index e31602d..95e1922 100644
--- a/src/contactpanel.cpp
+++ b/src/contactpanel.cpp
@@ -93,7 +93,7 @@
showError(QString::fromStdString("Cannot conect to ndnd!\n Have you started your ndnd?"));
}
-
+ m_localPrefix = Name("/private/local");
setLocalPrefix();
setInvitationListener();
@@ -260,7 +260,13 @@
ContactPanel::onLocalPrefixTimeout(Ptr<Closure> closure, Ptr<Interest> interest, int retry)
{
if(retry > 0)
- setLocalPrefix(retry - 1);
+ {
+ setLocalPrefix(retry - 1);
+ return;
+ }
+ else{
+ m_localPrefix = Name("/private/local");
+ }
}
void