.HIDE. General refactoring and documentation
This commit is contained in:
@@ -34,7 +34,5 @@ class handler(requestsManager.asyncRequestHandler):
|
||||
data["status"] = statusCode
|
||||
|
||||
# Send response
|
||||
#self.clear()
|
||||
self.write(json.dumps(data))
|
||||
self.set_status(statusCode)
|
||||
#self.finish(json.dumps(data))
|
||||
self.set_status(statusCode)
|
@@ -44,7 +44,5 @@ class handler(requestsManager.asyncRequestHandler):
|
||||
data["status"] = statusCode
|
||||
|
||||
# Send response
|
||||
#self.clear()
|
||||
self.write(json.dumps(data))
|
||||
self.set_status(statusCode)
|
||||
#self.finish(json.dumps(data))
|
||||
|
@@ -20,7 +20,5 @@ class handler(requestsManager.asyncRequestHandler):
|
||||
data["status"] = statusCode
|
||||
|
||||
# Send response
|
||||
#self.clear()
|
||||
self.write(json.dumps(data))
|
||||
self.set_status(statusCode)
|
||||
#self.finish(json.dumps(data))
|
||||
|
@@ -20,7 +20,5 @@ class handler(requestsManager.asyncRequestHandler):
|
||||
data["status"] = statusCode
|
||||
|
||||
# Send response
|
||||
#self.clear()
|
||||
self.write(json.dumps(data))
|
||||
self.set_status(statusCode)
|
||||
#self.finish(json.dumps(data))
|
||||
|
@@ -115,8 +115,6 @@ class handler(SentryMixin, requestsManager.asyncRequestHandler):
|
||||
return wrapper
|
||||
|
||||
eventHandler = {
|
||||
# TODO: Rename packets and events
|
||||
# TODO: Host check for multi
|
||||
packetIDs.client_changeAction: handleEvent(changeActionEvent),
|
||||
packetIDs.client_logout: handleEvent(logoutEvent),
|
||||
packetIDs.client_friendAdd: handleEvent(friendAddEvent),
|
||||
|
Reference in New Issue
Block a user