Skip to content

Commit 846ef29

Browse files
committed
update duplicateSendfile
1 parent 5f839f5 commit 846ef29

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mytoncore.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,9 +1430,12 @@ def SendFile(self, filePath, wallet=None, **kwargs):
14301430
wallet.oldseqno = self.GetSeqno(wallet)
14311431
self.liteClient.Run("sendfile " + filePath)
14321432
if duplicateSendfile:
1433+
try:
1434+
self.liteClient.Run("sendfile " + filePath, useLocalLiteServer=False)
1435+
self.liteClient.Run("sendfile " + filePath, useLocalLiteServer=False)
1436+
except Exception as e:
1437+
local.add_log('failed to send file via liteclient: ' + str(e), 'info')
14331438
self.send_boc_toncenter(filePath)
1434-
# self.liteClient.Run("sendfile " + filePath, useLocalLiteServer=False)
1435-
# self.liteClient.Run("sendfile " + filePath, useLocalLiteServer=False)
14361439
if timeout and wallet:
14371440
self.WaitTransaction(wallet, timeout)
14381441
if remove == True:

0 commit comments

Comments
 (0)