mirror of
				https://github.com/Rapptz/discord.py.git
				synced 2025-10-30 21:12:58 +00:00 
			
		
		
		
	Make sure the socket is closed when we call VoiceClient.disconnect
This commit is contained in:
		| @@ -253,10 +253,12 @@ class VoiceClient: | ||||
|         if not self._connected.is_set(): | ||||
|             return | ||||
|  | ||||
|         self.socket.close() | ||||
|         self._connected.clear() | ||||
|         yield from self.ws.close() | ||||
|         yield from self.main_ws.voice_state(self.guild_id, None, self_mute=True) | ||||
|         try: | ||||
|             yield from self.ws.close() | ||||
|             yield from self.main_ws.voice_state(self.guild_id, None, self_mute=True) | ||||
|         finally: | ||||
|             self.socket.close() | ||||
|  | ||||
|     @asyncio.coroutine | ||||
|     def move_to(self, channel): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user