Skip to content

Commit

Permalink
Lock me
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jan 5, 2023
1 parent c866969 commit 60680b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion async_amqp/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ async def queue_unbind(self, queue_name, exchange_name, routing_key, arguments=N
routing_key=routing_key,
arguments=arguments
)
return await self._write_frame_awaiting_response('queue_unbind', self.channel_id, request, no_wait=False)
async with self._queue_bind_lock:
return await self._write_frame_awaiting_response('queue_unbind', self.channel_id, request, no_wait=False)

async def queue_unbind_ok(self, frame):
future = self._get_waiter('queue_unbind')
Expand Down

0 comments on commit 60680b4

Please sign in to comment.