diff --git a/res/res_jabber.c b/res/res_jabber.c index a4772b19c22562b608247dce0e0abf80bca29dd9..240f0e2d6eb86aceca728c1aae31fbde40196716 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -1511,15 +1511,7 @@ static int aji_send_raw(struct aji_client *client, const char *xmlstr) #endif /* If needed, data will be sent unencrypted, and logHook will be called inside iks_send_raw */ - if((client->timeout != 0 && client->state == AJI_CONNECTED) || (client->state == AJI_CONNECTING)) - { - ret = iks_send_raw(client->p, xmlstr); - } - else { - ast_log(LOG_WARNING, "JABBER: Unable to send message to %s, we are not connected", client->name); - return -1; - } - + ret = iks_send_raw(client->p, xmlstr); if (ret != IKS_OK) { return ret; }