Permalink
Browse files

Bug fix to WPF file transfer example.

  • Loading branch information...
MarcF
MarcF committed May 22, 2014
1 parent df02e6f commit 42a81ddef555c4aaa51c5b054a0204322af817a1
Showing with 5 additions and 1 deletion.
  1. +1 −1 DLLAssemble/DLLAssemble.cs
  2. +4 −0 ExamplesFileTransfer.WPF/ReceivedFile.cs
@@ -16,7 +16,7 @@ public static void Assemble()
{
try
{
int minutesAllowedBeforeExceptionForOldDLLs = 5;
int minutesAllowedBeforeExceptionForOldDLLs = 60;
string assembleMode = "Release";
string sourceDir;
string destDir;
@@ -114,6 +114,10 @@ public void AddData(long dataStart, int bufferStart, int bufferLength, byte[] bu
data.Write(buffer, (int)bufferStart, (int)bufferLength);
ReceivedBytes += (int)(bufferLength - bufferStart);
//Ensure the data is correctly flushed if we have received everything
if (ReceivedBytes == SizeBytes)
data.Flush();
}
NotifyPropertyChanged("CompletedPercent");

0 comments on commit 42a81dd

Please sign in to comment.