Added check to thread update.

Get out of here S.T.A.L.K.E.R.!