Add states to Event to handle incoming events

This commit is contained in:
2013-08-07 23:43:38 -04:00
parent 49b0f75714
commit e5fabc27e3
2 changed files with 6 additions and 0 deletions

View File

@ -164,6 +164,7 @@ func ProcessLocalEvent(globals AsinkGlobals, event *asink.Event) {
}
func ProcessRemoteEvent(globals AsinkGlobals, event *asink.Event) {
//TODO check to see if event originated locally. If it did, stop processing it.
//Download event
if event.IsUpdate() {
outfile, err := ioutil.TempFile(globals.tmpDir, "asink")