Ignore:
Timestamp:
04/16/12 17:53:47 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The logger disconnects from the simulator if the flight has ended and the Forward button on the landing page can be activated only then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/web.py

    r74 r88  
    337337        result = Result()
    338338
    339         f = urllib2.urlopen(url)
     339        f = urllib2.urlopen(url, timeout = 10.0)
    340340
    341341        status = readline(f)
     
    375375        url = "http://www.virtualairlines.hu/onlinegates_get.php"
    376376
    377         f = urllib2.urlopen(url)
     377        f = urllib2.urlopen(url, timeout = 10.0)
    378378        result = Result()
    379379        result.fleet = Fleet(f)
     
    407407                                 ("kapu", gateNumber)])
    408408       
    409         f = urllib2.urlopen(url, data)
     409        f = urllib2.urlopen(url, data, timeout = 10.0)
    410410        line = readline(f)
    411411       
     
    434434        url = "http://notams.euroutepro.com/notams.xml"
    435435
    436         f = urllib2.urlopen(url)
     436        f = urllib2.urlopen(url, timeout = 10.0)
    437437        try:
    438438            xmlParser.parse(f)
     
    466466                                  ("mostRecentForEachStation", "constraint")])
    467467        url += data
    468         f = urllib2.urlopen(url)
     468        f = urllib2.urlopen(url, timeout = 10.0)
    469469        try:
    470470            result = Result()
Note: See TracChangeset for help on using the changeset viewer.