Commit d22ced99 authored by Marcus Comstedt's avatar Marcus Comstedt

Thread.Condition: Fix edge case in fallback implementation

parent d525198d
......@@ -1168,7 +1168,7 @@ class Condition (protected Mutex|void mutex)
{
variant void wait(MutexKey key, void|int|float seconds)
{
if (!seconds) {
if (!seconds || seconds == 0.0) {
// To be really accurate we should hang now, but somehow
// that doesn't seem too useful.
error ("Deadlock detected.\n");
......
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