libsaria: Sometimes the server doesn't exist

I shouldn't try shutting down the web server if it hasn't been imported.
This will only lead to an error...
This commit is contained in:
Bryan Schumaker 2011-06-16 11:15:01 -04:00
parent 0e5bd0d908
commit 23781e24a8
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import path
import sources
import controls
server = None
if version.__dev__ == True:
import server
@ -26,7 +27,8 @@ def startup():
def shutdown():
audio.shutdown()
server.shutdown()
if server != None:
server.shutdown()
## import plugin
## plugin.quit()