Skip to content

Commit

Permalink
fix: playback mode change unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Feb 14, 2016
1 parent 477d932 commit ee5020c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion feeluown/controllers/modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ def __init__(self):
def change_to_normal(self):
if self.current_mode == 1:
FmMode.exit_()
ControllerApi.player.change_player_mode_to_normal()
elif self.current_mode == 2:
SimiSongsMode.exit_()
ControllerApi.player.change_player_mode_to_normal()
ControllerApi.player.change_player_mode_to_normal()
self.current_mode = 0

def change_to_fm(self):
Expand Down
6 changes: 3 additions & 3 deletions feeluown/controllers/version_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class VersionManager(object):
current_version = 'v7.0alpha'
current_version = 'v7.1a'

@classmethod
@asyncio.coroutine
Expand All @@ -19,8 +19,8 @@ def check_release(cls):
LOG.info('正在查找新版本...')
try:
loop = asyncio.get_event_loop()
future = loop.run_in_executor(None,
partial(requests.get, url, timeout=5))
future = loop.run_in_executor(
None, partial(requests.get, url, timeout=5))
res = yield from future
if not res.status_code == 200:
LOG.warning('connect to api.github.com timeout')
Expand Down

0 comments on commit ee5020c

Please sign in to comment.