Compare commits
1 Commits
master
...
first-pack
Author | SHA1 | Date |
---|---|---|
Henrik Grimler | 714b75f1f6 |
|
@ -1088,12 +1088,15 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int
|
||||||
|
|
||||||
delete sendFilePartResponse;
|
delete sendFilePartResponse;
|
||||||
|
|
||||||
if (!success)
|
if (filePartIndex == 0)
|
||||||
{
|
{
|
||||||
Interface::PrintErrorSameLine("\n");
|
// Hack
|
||||||
Interface::PrintError("Failed to receive file part response!\n");
|
success = true;
|
||||||
|
receivedPartIndex = filePartIndex;
|
||||||
for (int retry = 0; retry < 4; retry++)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int retry = 0; retry < 4; ++retry)
|
||||||
{
|
{
|
||||||
Interface::PrintErrorSameLine("\n");
|
Interface::PrintErrorSameLine("\n");
|
||||||
Interface::PrintError("Retrying...");
|
Interface::PrintError("Retrying...");
|
||||||
|
@ -1106,7 +1109,7 @@ bool BridgeManager::SendFile(FILE *file, unsigned int destination, unsigned int
|
||||||
if (!success)
|
if (!success)
|
||||||
{
|
{
|
||||||
Interface::PrintErrorSameLine("\n");
|
Interface::PrintErrorSameLine("\n");
|
||||||
Interface::PrintError("Failed to send file part packet!\n");
|
Interface::PrintError("Failed to send file part packet 2!\n");
|
||||||
return (false);
|
return (false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue