Commit 095227a9895c9df055ff229b51f6f97c426b98cf
1 parent
cc499edb
add hack when we finish to receive file. Waiting 10 seconds for sending the last message
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
calexium_lib/net_services_protocols/ftp_client.anubis
| @@ -42,6 +42,8 @@ define Maybe(One) | @@ -42,6 +42,8 @@ define Maybe(One) | ||
| 42 | send_ACK_ok(mQ, _CXM_FTP_DATA); | 42 | send_ACK_ok(mQ, _CXM_FTP_DATA); |
| 43 | if last_block then | 43 | if last_block then |
| 44 | println("File received successfully"); | 44 | println("File received successfully"); |
| 45 | + //TODO this is a big hack, we must check if all data are sent from the mQ | ||
| 46 | + sleep(10000); | ||
| 45 | success(unique) | 47 | success(unique) |
| 46 | else | 48 | else |
| 47 | // println("Bytes received : " + (so_far + len)); | 49 | // println("Bytes received : " + (so_far + len)); |