mirror of https://github.com/apache/activemq.git
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:
parent
fc68c3a6e5
commit
f4d37277d3
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue