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:
parent
0e5bd0d908
commit
23781e24a8
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue