| 341 if (slpcall) { |
341 if (slpcall) { |
| 342 msn_slpcall_session_init(slpcall); |
342 msn_slpcall_session_init(slpcall); |
| 343 if (queue) { |
343 if (queue) { |
| 344 while (!g_queue_is_empty(queue)) { |
344 while (!g_queue_is_empty(queue)) { |
| 345 MsnDirectConnPacket *p = g_queue_pop_head(queue); |
345 MsnDirectConnPacket *p = g_queue_pop_head(queue); |
| 346 msn_slplink_send_msg(slplink, p->msg); |
346 msn_slplink_send_msgpart(slplink, p->part); |
| 347 msn_dc_destroy_packet(p); |
347 msn_dc_destroy_packet(p); |
| 348 } |
348 } |
| 349 g_queue_free(queue); |
349 g_queue_free(queue); |
| 350 } |
350 } |
| 351 } |
351 } |
| 568 |
568 |
| 569 memcpy(p->data, part->header, P2P_PACKET_HEADER_SIZE); |
569 memcpy(p->data, part->header, P2P_PACKET_HEADER_SIZE); |
| 570 memcpy(p->data + P2P_PACKET_HEADER_SIZE, part->buffer, part->size); |
570 memcpy(p->data + P2P_PACKET_HEADER_SIZE, part->buffer, part->size); |
| 571 |
571 |
| 572 p->sent_cb = msn_dc_send_packet_cb; |
572 p->sent_cb = msn_dc_send_packet_cb; |
| |
573 p->part = part; |
| 573 |
574 |
| 574 msn_dc_enqueue_packet(dc, p); |
575 msn_dc_enqueue_packet(dc, p); |
| 575 } |
576 } |
| 576 |
577 |
| 577 static int |
578 static int |