diff options
author | amartin <olpc@xo-05-28-21.localdomain> | 2008-02-13 07:55:06 (GMT) |
---|---|---|
committer | amartin <olpc@xo-05-28-21.localdomain> | 2008-02-13 07:55:06 (GMT) |
commit | 79d06d1d48049b682f9d6b1a92d18768835c4753 (patch) | |
tree | 2698b17636cc05020d3d81c4e39c817e911f5a88 | |
parent | 99f90d6206f9840c8988615b95b05aa968490c88 (diff) |
network
-rw-r--r-- | TamTamJam.activity/Jam/JamMain.py | 6 | ||||
-rw-r--r-- | common/Util/Network.py | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/TamTamJam.activity/Jam/JamMain.py b/TamTamJam.activity/Jam/JamMain.py index 4242dd3..731c53f 100644 --- a/TamTamJam.activity/Jam/JamMain.py +++ b/TamTamJam.activity/Jam/JamMain.py @@ -1214,6 +1214,10 @@ class JamMain(gtk.EventBox): return self.ticksPerSecond*(delta % self.beatDuration) def updateSync( self ): + if Config.DEBUG: + # help the log print out on time + sys.stdout.flush() + if self.network.isOffline(): return False elif self.network.isWaiting(): @@ -1238,6 +1242,6 @@ class JamMain(gtk.EventBox): correct -= Config.TICKS_PER_BEAT elif correct < 0: correct += Config.TICKS_PER_BEAT - #print "correct:: %f ticks, %f ticks in, %f expected, %f err, correct %f" % (curTick, curTicksIn, ticksIn, err, correct) + print "correct:: %f ticks, %f ticks in, %f expected, %f err, correct %f" % (curTick, curTicksIn, ticksIn, err, correct) if abs(err) > 0.25: self.csnd.adjustTick(-err) diff --git a/common/Util/Network.py b/common/Util/Network.py index c2a5d07..dbbc97d 100644 --- a/common/Util/Network.py +++ b/common/Util/Network.py @@ -539,6 +539,7 @@ class Network: con.recvBuf = con.recvBuf[con.waitingForData:] con.waitingForData = 0 for func in self.processMessage[con.message]: + print "idle_add", func, con.message gobject.idle_add( func, sock, con.message, data ) else: return # wait for more data |