Skip to content

Commit 2f97e6b

Browse files
committed
only trigger push for FTs once
1 parent e6f658c commit 2f97e6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/TrifaToxService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,10 @@ private void start_queued_filetransfers()
16911691
{
16921692
Message m_resend_ft = (Message) ii.next();
16931693

1694-
friend_call_push_url(m_resend_ft.tox_friendpubkey, System.currentTimeMillis());
1694+
if (m_resend_ft.sent_push < 1)
1695+
{
1696+
friend_call_push_url(m_resend_ft.tox_friendpubkey, System.currentTimeMillis());
1697+
}
16951698
Log.i(TAG, "start_ft:sent ping to push url");
16961699
if (is_friend_online_real(tox_friend_by_public_key__wrapper(m_resend_ft.tox_friendpubkey)) != 0)
16971700
{

0 commit comments

Comments
 (0)