cleanup useless comments
This commit is contained in:
parent
4843c4052d
commit
d5fb1601b7
2 changed files with 0 additions and 5 deletions
|
@ -1884,7 +1884,6 @@ void mtproto_close(struct mtproto_connection *mtp) {
|
|||
}
|
||||
stop_ping_timer (mtp->connection);
|
||||
}
|
||||
// remove all ping timer that point to this connection
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
4
net.c
4
net.c
|
@ -67,7 +67,6 @@ int ping_alarm (struct connection *c) {
|
|||
warning ( "fail connection: reason: ping timeout\n");
|
||||
c->state = conn_failed;
|
||||
fail_connection (c);
|
||||
|
||||
} else if (get_double_time () - c->last_receive_time > 5 * PING_TIMEOUT && c->state == conn_ready) {
|
||||
debug ("sending PING...\n");
|
||||
int x[3];
|
||||
|
@ -327,11 +326,8 @@ int try_write (struct connection *c) {
|
|||
x += r;
|
||||
c->out_head->rptr += r;
|
||||
if (c->out_head->rptr != c->out_head->wptr) {
|
||||
// Inhalt des Buffers nicht komplett abgeschickt,
|
||||
// es geht nichts mehr in den Socket
|
||||
break;
|
||||
}
|
||||
// buffer ausgelesen, alten buffer löschen
|
||||
struct connection_buffer *b = c->out_head;
|
||||
c->out_head = b->next;
|
||||
if (!c->out_head) {
|
||||
|
|
Loading…
Add table
Reference in a new issue