aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-10-11 13:28:25 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-10-11 13:28:25 +0300
commit11310002d0418984e2cafc6a867f8b010bd05314 (patch)
tree06403178635da17fcb99cc376574e4f59a057084
parent6a2f1fa7da3b35dd9ec8d1431163f4cbeb808f7e (diff)
Fix agent loosing controller URLs
-rw-r--r--bbot/agent/agent.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx
index 82a5f69..a65045d 100644
--- a/bbot/agent/agent.cxx
+++ b/bbot/agent/agent.cxx
@@ -1044,7 +1044,7 @@ try
}
else
{
- for (string& u: controllers)
+ for (const string& u: controllers)
{
task_response_manifest r;
@@ -1117,7 +1117,7 @@ try
<< "from " << u;});
tr = move (r);
- url = move (u);
+ url = u;
break;
}
}