Commit 3a8a4f78 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

less scary log message when connecting to a remote server

parent f93d4ebb
......@@ -4,9 +4,9 @@
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Wed May 25 14:15:13 2011 (+0200)
* Version: $Id$
* Last-Updated: mer. oct. 31 17:32:23 2012 (+0100)
* Last-Updated: mer. janv. 16 11:15:12 2013 (+0100)
* By: Nicolas Niclausse
* Update #: 1774
* Update #: 1776
*/
/* Commentary:
......@@ -501,7 +501,7 @@ bool dtkDistributedController::connect(const QUrl& server)
} else {
dtkError() << "Unable to connect to" << server.toString();
dtkWarn() << "Unable to connect to" << server.toString();
d->sockets.remove(server.toString());
return false;
}
......
......@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Tue Apr 3 16:35:49 2012 (+0200)
* Version: $Id$
* Last-Updated: mer. oct. 31 17:27:09 2012 (+0100)
* Last-Updated: mer. janv. 16 11:15:24 2013 (+0100)
* By: Nicolas Niclausse
* Update #: 138
* Update #: 142
*/
/* Commentary:
......@@ -133,11 +133,13 @@ void dtkDistributor::onConnect(void)
QUrl url = QUrl(d->host_address->currentText());
if (!d->controller->connect(url)) {
// can't connect, try to deploy:
if (!d->controller->deploy(url))
if (!d->controller->deploy(url)) {
return;
else
} else {
dtkInfo() << "Server is now deployed, retry to connect";
if (!d->controller->connect(url))
return;
}
}
d->header_view->setCluster(d->host_address->currentText());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment