From 7177ca3a70807f06746b5f753e786811cd98f90e Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 21 Jan 2018 12:50:12 +0300 Subject: Tox: attempt to fix locked file when transfer is cancelled --- protocols/Tox/src/tox_messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_messages.cpp') diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp index 6ab66e8186..8d39d1d6d7 100644 --- a/protocols/Tox/src/tox_messages.cpp +++ b/protocols/Tox/src/tox_messages.cpp @@ -60,7 +60,7 @@ void CToxProto::OnFriendMessage(Tox *tox, uint32_t friendNumber, TOX_MESSAGE_TYP rawMessage[length] = 0; PROTORECVEVENT recv = { 0 }; - recv.timestamp = time(nullptr); + recv.timestamp = now(); recv.szMessage = rawMessage; switch (type) { case TOX_MESSAGE_TYPE_NORMAL: -- cgit v1.2.3