[X2Go-Commits] [mteleplayer] 28/29: Relaxing some timeout limits to prevent premature selfdestruction on slow connections

git-admin at x2go.org git-admin at x2go.org
Fri Aug 29 21:12:05 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch gzng
in repository mteleplayer.

commit deff486f8645026e425f11e43eec470066ceb966
Author: gznget <opensource at gznianguan.com>
Date:   Fri Aug 29 06:28:09 2014 +0200

    Relaxing some timeout limits to prevent premature selfdestruction on slow connections
---
 serverside/bin/mteleplayer |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/serverside/bin/mteleplayer b/serverside/bin/mteleplayer
index 8b9aed2..4b9b2db 100755
--- a/serverside/bin/mteleplayer
+++ b/serverside/bin/mteleplayer
@@ -158,7 +158,7 @@ $TnW{'runstatechanges'} = Glib::Timeout->add (100, \&coreRunSTATEchanges);
 #my $randomcrap = Glib::Timeout->add (250, sub {if(($sstatusi{'runState'} eq "R") and ($sstatusi{'sockState'} > 0) and ($sstatusi{'X2GoResized'} > 0)){
 #  $sstatusi{'X2GoResized'}--;  checkDimPosNSend(1);} 1;});
 my $randomcrap = Glib::Timeout->add (150, sub {if(($sstatusi{'runState'} eq "R") and ($sstatusi{'sockState'} > 0)) {
- if ($sstatusi{'lastCOMtime'} < (time()-2)) {toggleBLACKOUT(1);} else {
+ if ($sstatusi{'lastCOMtime'} < (time()-10)) {toggleBLACKOUT(1);} else {
    checkDimPosNSend();
  }
 } 1;});
@@ -599,7 +599,6 @@ print "$remoteDir/$PlayerStatus{'currentMediaID'}.jpg\n";
         $fh->close;
         $fh = undef;
         $sstatusi{'sockState'} = 0;
-        Gtk2->main_iteration while Gtk2->events_pending; 
         return 0;
           
     }

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/mteleplayer.git


More information about the x2go-commits mailing list