Cosmetics.

This commit is contained in:
Simone Bordet 2012-02-29 00:47:32 +01:00
parent 3b8c6dfd4c
commit ae0a155a39
1 changed files with 2 additions and 4 deletions

View File

@ -325,11 +325,9 @@ public class StandardSession implements ISession, Parser.Listener, Handler<Stand
public void run()
{
stream.handle(frame, data);
updateLastStreamId(stream);
if (stream.isClosed())
{
updateLastStreamId(stream);
removeStream(stream);
}
}
});
}
@ -687,7 +685,7 @@ public class StandardSession implements ISession, Parser.Listener, Handler<Stand
try
{
if (stream != null)
updateLastStreamId(stream); // TODO: not sure this is right
updateLastStreamId(stream);
// Synchronization is necessary, since we may have concurrent replies
// and those needs to be generated and enqueued atomically in order