mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Possible bug fixed.
This commit is contained in:
parent
05a3851e43
commit
1994c3cd89
|
@ -516,8 +516,10 @@ static int send_userstatus(Messenger *m, int friendnumber, USERSTATUS status)
|
|||
|
||||
static int send_ping(Messenger *m, int friendnumber)
|
||||
{
|
||||
int ret = write_cryptpacket_id(m, friendnumber, PACKET_ID_PING, 0, 0);
|
||||
if (ret == 1)
|
||||
m->friendlist[friendnumber].ping_lastsent = unix_time();
|
||||
return write_cryptpacket_id(m, friendnumber, PACKET_ID_PING, 0, 0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int set_friend_statusmessage(Messenger *m, int friendnumber, uint8_t *status, uint16_t length)
|
||||
|
|
Loading…
Reference in New Issue
Block a user