Skip to content

Commit

Permalink
Refactoring to always create HTTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Jan 4, 2020
1 parent bf028d1 commit 8d7050d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/windows/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def closeEvent(self, event):
# Close & Stop libopenshot logger
openshot.ZmqLogger.Instance().Close()
app.logger_libopenshot.kill()
if self.http_server_thread:
self.http_server_thread.kill()
self.http_server_thread.kill()

# Destroy lock file
self.destroy_lock_file()
Expand Down Expand Up @@ -2506,11 +2505,9 @@ def __init__(self, mode=None):
if not self.mode == "unittest":
self.RecoverBackup.connect(self.recover_backup)

# Initialize and start the thumbnail HTTP server
self.http_server_thread = httpThumbnailServerThread()
self.http_server_thread.start()
else:
self.http_server_thread = None
# Initialize and start the thumbnail HTTP server
self.http_server_thread = httpThumbnailServerThread()
self.http_server_thread.start()

# Create the timeline sync object (used for previewing timeline)
self.timeline_sync = TimelineSync(self)
Expand Down

0 comments on commit 8d7050d

Please sign in to comment.