Skip to content

Commit

Permalink
Merge pull request XX-net#4375 from xyuanmu/patch-1
Browse files Browse the repository at this point in the history
fix lost ip when disconnecting Internet
  • Loading branch information
yfdyh000 authored Oct 15, 2016
2 parents 5ef60b8 + d6d8459 commit 833b801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/default/gae_proxy/local/check_local_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def report_network_fail():
last_check_time = time.time()

if continue_fail_count > 10:
# network_stat = "unknown"
network_stat = "unknown"
xlog.debug("report_connect_fail continue_fail_count:%d", continue_fail_count)
triger_check_network()


def is_ok():
global network_stat, last_check_time, continue_fail_count
global network_stat
return network_stat == "OK"


Expand Down

0 comments on commit 833b801

Please sign in to comment.