forked from cory/tildefriends
First actual successful communication through a room.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4039 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
046bf7e2a9
commit
041e63ac70
@ -294,7 +294,9 @@ static void _tf_ssb_connection_on_write(uv_write_t* req, int status)
|
|||||||
if (status)
|
if (status)
|
||||||
{
|
{
|
||||||
tf_ssb_connection_t* connection = req->data;
|
tf_ssb_connection_t* connection = req->data;
|
||||||
_tf_ssb_connection_close(connection, "write failed asynchronously");
|
char buffer[256];
|
||||||
|
snprintf(buffer, sizeof(buffer), "write failed asynchronously: %s", uv_strerror(status));
|
||||||
|
_tf_ssb_connection_close(connection, buffer);
|
||||||
}
|
}
|
||||||
tf_free(req);
|
tf_free(req);
|
||||||
}
|
}
|
||||||
@ -2152,7 +2154,7 @@ tf_ssb_connection_t* tf_ssb_connection_tunnel_create(tf_ssb_t* ssb, const char*
|
|||||||
NULL,
|
NULL,
|
||||||
tunnel,
|
tunnel,
|
||||||
tunnel);
|
tunnel);
|
||||||
if (request_number < 0)
|
if (request_number > 0)
|
||||||
{
|
{
|
||||||
tunnel->state = k_tf_ssb_state_connected;
|
tunnel->state = k_tf_ssb_state_connected;
|
||||||
_tf_ssb_connection_client_send_hello(tunnel);
|
_tf_ssb_connection_client_send_hello(tunnel);
|
||||||
|
Loading…
Reference in New Issue
Block a user