forked from Mirrors/openclonk
fix scheduler blocking by unblock proc
parent
eee6c4ac4d
commit
8b4006da08
|
@ -2073,7 +2073,7 @@ bool C4NetIOUDP::SetBroadcast(const addr_t &addr, bool fSet) // (mt-safe)
|
|||
int C4NetIOUDP::GetNextTick(int Now) // (mt-safe)
|
||||
{
|
||||
// maximum time: check interval
|
||||
int iTiming = iNextCheck;
|
||||
int iTiming = Max<int>(Now, iNextCheck);
|
||||
// client timeouts (e.g. connection timeout)
|
||||
CStdShareLock PeerListLock(&PeerListCSec);
|
||||
for(Peer *pPeer = pPeerList; pPeer; pPeer = pPeer->Next)
|
||||
|
|
|
@ -165,7 +165,7 @@ private:
|
|||
// Unblocker
|
||||
class NoopNotifyProc : public CStdNotifyProc
|
||||
{
|
||||
public: virtual bool Execute(int, pollfd * readyfds) { return true; }
|
||||
public: virtual bool Execute(int, pollfd * readyfds) { CheckAndReset(); return true; }
|
||||
};
|
||||
NoopNotifyProc Unblocker;
|
||||
|
||||
|
|
Loading…
Reference in New Issue