Fix possible wrong type checking

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@427020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-07-31 05:52:31 +00:00
parent fc68c3a6e5
commit f4d37277d3
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ final public class AsyncToSyncChannelServer implements SyncChannelServer, Accept
}
// Can we just just undo the adaptor
if( channel.getClass() == SyncToAsyncChannel.class ) {
if( channel.getClass() == SyncToAsyncChannelServer.class ) {
return ((SyncToAsyncChannelServer)channel).getSynchChannelServer();
}

View File

@ -62,7 +62,7 @@ final public class SyncToAsyncChannelServer implements AsyncChannelServer, Runna
}
// Can we just just undo the adaptor
if( channel.getClass() == SyncToAsyncChannel.class ) {
if( channel.getClass() == AsyncToSyncChannelServer.class ) {
return ((AsyncToSyncChannelServer)channel).getAsyncChannelServer();
}