Commit af3db69e authored by Alan Third's avatar Alan Third
Browse files

Fix NS main thread check (bug#25265)

* src/nsterm.m (ns_read_socket, ns_select): Replace mainThread with
isMainThread.
parent a23974d6
......@@ -4039,7 +4039,7 @@ in certain situations (rapid incoming events).
return i;
}
if ([NSThread mainThread])
if ([NSThread isMainThread])
{
block_input ();
n_emacs_events_pending = 0;
......@@ -4123,7 +4123,7 @@ in certain situations (rapid incoming events).
}
if (NSApp == nil
|| ![NSThread mainThread]
|| ![NSThread isMainThread]
|| (timeout && timeout->tv_sec == 0 && timeout->tv_nsec == 0))
return pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment