Skip to content

Commit

Permalink
リファクタ
Browse files Browse the repository at this point in the history
  • Loading branch information
tateisu committed Sep 11, 2018
1 parent 50f164c commit 1e90ef3
Show file tree
Hide file tree
Showing 3 changed files with 529 additions and 468 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class FlashAir(private val service : DownloadService, internal val thread : Down

if(thread.target_type == Pref.TARGET_TYPE_FLASHAIR_STA) {
while(! thread.isCancelled) {
val tracker_last_result = service.wifi_tracker.bLastConnected.get()
val tracker_last_result = service.wifi_tracker.bLastConnected
val air_url = service.wifi_tracker.lastTargetUrl.get()
if(tracker_last_result && air_url.isNotEmpty() ) {
thread.target_url = air_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class PqiAirCard(

if(thread.target_type == Pref.TARGET_TYPE_PQI_AIR_CARD_TETHER) {
while(! thread.isCancelled) {
val tracker_last_result = service.wifi_tracker.bLastConnected.get()
val tracker_last_result = service.wifi_tracker.bLastConnected
val air_url = service.wifi_tracker.lastTargetUrl.get()
if(tracker_last_result && air_url.isNotEmpty()) {
thread.target_url = air_url
Expand Down
Loading

0 comments on commit 1e90ef3

Please sign in to comment.