Skip to content

Commit

Permalink
Reverted locks (do we really need them right now, when the both defer…
Browse files Browse the repository at this point in the history
…red methods are empty?) => refixed DNET-204.
  • Loading branch information
cincuranet committed Jan 16, 2009
1 parent 3d47496 commit 58b4e1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
Expand Up @@ -123,14 +123,8 @@ public override void ReleaseObject(int op, int id)
try
{
DoReleaseObjectPacket(op, id);
this.DeferredPackets.Enqueue(
(IResponse response) =>
{
lock (this.SyncObject)
{
ProcessReleaseObjectResponse(response);
}
});
#warning Lock?
this.DeferredPackets.Enqueue(ProcessReleaseObjectResponse);
}
catch (IOException)
{
Expand Down
Expand Up @@ -271,14 +271,8 @@ protected override void Free(int option)
lock (this.database.SyncObject)
{
DoFreePacket(option);
(this.Database as GdsDatabase).DeferredPackets.Enqueue(
(IResponse response) =>
{
lock (this.database.SyncObject)
{
ProcessFreeResponse(response);
}
});
#warning Lock?
(this.Database as GdsDatabase).DeferredPackets.Enqueue(ProcessFreeResponse);
}
}
#endregion
Expand Down

0 comments on commit 58b4e1e

Please sign in to comment.