Skip to content

Commit

Permalink
Ignore invalid remote viewers
Browse files Browse the repository at this point in the history
Fixes #45, seems to make save/loading while remote viewing pretty much
100% reliable.
  • Loading branch information
narc0tiq committed Aug 15, 2016
1 parent 7ce97e6 commit 80f60b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.104
0.7.105
2 changes: 1 addition & 1 deletion resmon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ function resmon.on_click.goto_site(event)
player.character = viewer

-- don't leave an old one behind
if player_data.remote_viewer then
if player_data.remote_viewer and player_data.remote_viewer.valid then
player_data.remote_viewer.destroy()
end
player_data.remote_viewer = viewer
Expand Down

0 comments on commit 80f60b1

Please sign in to comment.