Move the main thread check to the appropriate place.

Change-Id: Ic9bcf209e9398ea05b293a8cc31ac7f234b9de16
1 file changed