X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=qchess%2Fsrc%2Fmain.py;h=531addec646a2ad8f1b442077b2aa69dfb7711ad;hb=639646adb020e0be9433da7b3d5ef6b987c99f71;hp=7e862a9cf54cea4ea98b50c93640dbdbde990d3f;hpb=c0c346f95a6d19d8967928aeeeb4937e1a99f2f4;p=progcomp2013.git diff --git a/qchess/src/main.py b/qchess/src/main.py index 7e862a9..531adde 100644 --- a/qchess/src/main.py +++ b/qchess/src/main.py @@ -236,6 +236,10 @@ def main(argv): if graphics != None: graphics.board.display_grid(graphics.window, graphics.grid_sz) graphics.message("Connecting to " + p.colour + " player...") + + # Handle race condition by having clients wait longer than servers to connect + if p.address != None: + time.sleep(0.2) p.connect()