equal
deleted
inserted
replaced
447 "Connection is already open, call lm_connection_close() first"); |
447 "Connection is already open, call lm_connection_close() first"); |
448 return FALSE; |
448 return FALSE; |
449 } |
449 } |
450 |
450 |
451 if (!connection_get_server_from_jid (connection->jid, &domain)) { |
451 if (!connection_get_server_from_jid (connection->jid, &domain)) { |
452 g_set_error (error, |
452 domain = g_strdup (connection->server); |
453 LM_ERROR, |
|
454 LM_ERROR_CONNECTION_FAILED, |
|
455 "You need to either set server hostname or jid"); |
|
456 return FALSE; |
|
457 } |
453 } |
458 |
454 |
459 lm_message_queue_attach (connection->queue, connection->context); |
455 lm_message_queue_attach (connection->queue, connection->context); |
460 |
456 |
461 lm_verbose ("Connecting to: %s:%d\n", |
457 lm_verbose ("Connecting to: %s:%d\n", |