Skip to content

Commit

Permalink
Merge branch 'release' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed Apr 6, 2013
2 parents d8c831f + 1be22c8 commit 9a4fcd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Microsoft.AspNet.SignalR.Hosting.Memory/AsyncResult.cs
Expand Up @@ -47,9 +47,12 @@ public AsyncResult(AsyncCallback asyncCallback, Object state)
completedSynchronously
? c_StateCompletedSynchronously
: c_StateCompletedAsynchronously);

if (prevState != c_StatePending)
throw new InvalidOperationException(
"You can set a result only once");
{
// Noop
return;
}

// If the event exists, set it
if (m_AsyncWaitHandle != null) m_AsyncWaitHandle.Set();
Expand Down

0 comments on commit 9a4fcd7

Please sign in to comment.