Only set the attached flag when a client attaches (#3490)
commite15f21ba183523ec9a2c3bb776268a49dd102ab9
authorZoltan Varga <vargaz@gmail.com>
Wed, 31 Aug 2016 00:56:54 +0000 (31 02:56 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Aug 2016 00:56:54 +0000 (31 02:56 +0200)
tree994ca71befbc813ace3d34be373ac8e038538ed4
parent4f6fb3002da7dfdb3d42b2b38c45dfb245cb3304
parentf4128e317e2c952ecf5c78812e8d79eeebdc6a2d
Only set the attached flag when a client attaches (#3490)

In defer mode, the debugger thread is started as soon as possible before
any clients are attached, but the debugger is_attached flag was being set
immediately. This would cause the runtime (and the System.Diagnostics.Debugger
class) to wrongly report a client as being attached.

Originally fixed in the Unity fork here: https://github.com/Unity-Technologies/mono/commit/797a210e0f2416d779c448bb9e03bb16933e261f