Doing this removes redundant code, still not a solution:
waitForConnectionFor: timeout ifTimedOut: timeoutBlock
"Wait up until the given deadline for a connection to be established.
Return true if it is established by the deadline, false if not."
^ self waitForConnectionUntil: (self class deadlineSecs: timeout)
ifTimedOut: timeoutBlock
On Dec 12, 2013, at 11:32 AM, Sebastian Sastre <[email protected]>
wrote:
> Hi guys,
>
> I'm having an issue..
>
> What happens?
>
> The image UI gets frozen when terminating a thread that's waiting on that
> method
>
> What I've discovered so far?
>
> seaside /config responds (but nothing else)
> restarting the UI process results to no avail
> terminating the process (selected in that screenshot) freezes everything but..
> debugging works and..
> when I debug and close the debugger freezes everything, but..
> if instead I evaluate with an inspector the block
>
> [(status = WaitingForConnection) and: [(msecsEllapsed := Time
> millisecondsSince: startTime) < msecsDelta]]
>
> it answers false and closing the dbugger after that leaves the system normal
> (meaning that if I terminate the process after that, it doesn't freeze and
> all go as expected)
>
> Still working on it..
>
> Help and ideas appreciated
>
>
> <Screen Shot 2013-12-12 at 11.24.32 AM.png>