Index: client/samples/dartcombat/setup.dart |
diff --git a/client/samples/dartcombat/setup.dart b/client/samples/dartcombat/setup.dart |
index 63affdb89ddb9d4d2c3d49008684d820efcf6c35..d77febba4021d8c8b66fe5c391c468fa4a57b311 100644 |
--- a/client/samples/dartcombat/setup.dart |
+++ b/client/samples/dartcombat/setup.dart |
@@ -82,13 +82,13 @@ class FlakyProxy { |
proxy = new ReceivePort(); |
proxy.receive((message, SendPort reply) { |
- window.setTimeout(Isolate.bind(() { |
+ window.setTimeout(() { |
if (randomlyFail()) { |
reply.send(const [false, "There was an error"], null); |
} else { |
_target.send(message, reply); |
} |
- }), 200); |
+ }, 200); |
}); |
} |