mirror of https://github.com/icedream/npsharp.git
Fix WriteUserFile failout due to multiple "SetResult"s
parent
1abdb83883
commit
67d3538ad0
|
@ -225,7 +225,10 @@ namespace NPSharp.NP
|
|||
{
|
||||
var result = (StorageWriteUserFileResultMessage) packet;
|
||||
if (result.Result != 0)
|
||||
{
|
||||
tcs.SetResult(false);
|
||||
return;
|
||||
}
|
||||
tcs.SetResult(true);
|
||||
});
|
||||
RPC.Send(new StorageWriteUserFileMessage {FileData = contents, FileName = filename, NPID = LoginId});
|
||||
|
|
Loading…
Reference in New Issue