if we fail to create a Channel tab after joining, then part the channel

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-12-17 12:38:41 -05:00
parent 73f2fa029d
commit 6dda84e4ff
1 changed files with 6 additions and 2 deletions

View File

@ -753,12 +753,16 @@ _window_network_channels_create(Express_Network *net)
/* loop network channels and create */
EINA_LIST_FOREACH(cfg_net->channels, c, cfg_chl)
{
if (!express_network_channel_join(net, cfg_chl->name, cfg_chl->pass))
if (!express_network_channel_join(net, cfg_chl->name,
cfg_chl->pass))
continue;
/* try to create a channel */
if (!(chl = _window_channel_create(cfg_chl->name, srv_name)))
continue;
{
express_network_channel_part(net, cfg_chl->name);
continue;
}
/* if (i < 0) */
/* { */